jQuery - Assign a html code to a variable -
suppose have code that
<p>hello</p> i want assign above code variable, how that?
var content = $('p').html();
ah dammit, late.
if want specific paragraph should give id , use:
var content = $('p#id').html();
instead.
Comments
Post a Comment