I have a paragraph:
<p>red orange yellow green blue indigo violet</p> I need to wrap the ending text in something that I can hide/show on click, like so:
<p>red orange yellow green <a href="#">...Show More</a> <span="unhideme">blue indigo violet</span> </p> This is how far i've gotten:
<p>red orange yellow green <a href="#">...Show More</a> blue indigo violet </p> Is there some way to say "select all text after the a tag and wrap it in a span" with jquery? Or some other solution to generating a "Read More" button with jquery?