I have this js code :
var doc = new jsPDF();
$('#pdf_new').click(function(){
var html=$(".wrap_all").html();
doc.fromHTML(html,200,200, {
'width': 500,
});
doc.save("Test.pdf");
});
In html I have code like this :
<div class = 'wrap_all'>
<div id = 'wrap_odd'> <div id = ''>....</div> </div>
<div id = 'wrap_even'> <div id = ''>....</div> </div>
</div>
Nothing works ... Console return to me:
Cannot read property
#wrap_odd
of undefined"
(P.S sorry for my English)
See Question&Answers more detail:os