I see some thing like
$(#content).children(".p:first");
call the first <p> tag, except first, Is there any other parameter? thanks.
exaple:
<div id="content">
<p>aaa</p>
<p>bbb</p>
<p>ccc</p>
use $(#content).children(".p:first"); echo
<div id="content">
<p>aaa</p>
</div>
Is there any $(#content).children(".p:second"); or $(#content).children(".p:last"); can be set?
:lastalready exists – see the documentation here.:secondis not there, but could be implemented the easy way:$('p:first').next()or, with a custom selector:This now allows you to do $(‘element:second’). See the jsFiddle here: http://jsfiddle.net/6xY6D/