page = $("<div id="content"><p>aaa</p><p>bbb</p><p>ccc</p></div>").find('p').eq(0);
This can echo `<p>aaa</p>` but How to select multi `eq()` in jqeury? if I need `<p>aaa</p><p>bbb</p>`
page = $("<div id="content"><p>aaa</p><p>bbb</p><p>ccc</p></div>").find('p').eq(0);
This can echo `<p>aaa</p>` but How to select multi `eq()` in jqeury? if I need `<p>aaa</p><p>bbb</p>`
take the eq() out? that way you'll have all three paragraphs.
if you only want the first two to show up, just write.
$('p:last').hide();
if you want the middle one to hide, write
<div id="content"><p>aaa</p><p>bbb</p><p>ccc</p></div>
$('div#content').find('p').eq(1).hide();
you can go here and play with this.
hope this helps
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.