jquery 3.4 - Replacement examples for deprecated positional selectors (:first, :last...)
Hello,
On the 3.4 version, selectors "
:first
,
:last
,
:eq
,
:even
,
:odd
,
:lt
,
:gt
, and
:nth
" are marked as deprecated.
But I can't see anywhere examples of functions we should use instead...
Can somebody point me out some doc on the subject, or give me some examples, please?
For
:first and
:last, I can use
.first() and
.last().
But what if I want the opposite, with 'no'' ? Like:
var $dom = $('input[name^="field_001_"]:not(:last)');
And what methods must I use for other selectors?
Best regards,