Selects all paragraphs, finds span elements inside these, and reverts the selection back to the paragraphs.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
Hi there
how
are you
doing
?
This
span
is one of several
spans
in this
sentence
.
Tags in jQuery object initially:
Tags in jQuery object after find:
Tags in jQuery object after end:
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself