javascript - jquery method of selecting elements -
what real difference between next code:
<p>maizere1</p> <p>maizere2</p> <p>maizere3</p> <script> $("p").text($(this).text()).get(0); vs $("<p>").text($(this).text()).get(0);//actually line giving me problem
what $("<p>"> do? heard $("<p>") first check element exist or not ,if not create element
$('<p>')
isn't valid jquery selector create <p>
element don't think you're trying solve here.
javascript jquery
No comments:
Post a Comment