Response title
This is preview!
- $("#myid").find(".myclass").andSelf().filter(".myclass").each(function () {
My proposal:
- $("#myid").find(".myclass").andSelf(".myclass").each(function () {
.addBack()
, although
.andSelf()
will still work.
.addBack()
instead of
.andSelf()
because
.andSelf()
is deprecated as of 1.8 and likely will be removed in a future version.
© 2013 jQuery Foundation
Sponsored by and others.