is there a neat way to add html with jQuery instead of
$("#elm").html($("#elm").html() + "some text");
It'd be great to just do $("#elm").html(+= "some text")
or something similar...
is there a neat way to add html with jQuery instead of
$("#elm").html($("#elm").html() + "some text");
It'd be great to just do $("#elm").html(+= "some text")
or something similar...
$('#elm').append('some text');
http://docs.jquery.com/Manipulation/append for more information on using append