How to change a specific HTML string with jQuery

Viewed 125

Here is my HTML code:

<th>
    Click<br/>
    <img class="magnifier" height="66" src="../Images/magnifier-zoom.png" width="75"><br/>
    To Enlarge
</th>

I have a jQuery script that when clicked it toggles an enlarge class, so when someone clicks to enlarge I want to change the enlarge word to shrink would there be any simple way of doing this in jQuery?

Or do you guys think I am better off having 2 <div>'s or even <span> elements and toggle the display of each element?

3 Answers
Related