Possible Duplicate:
Replace all instances of a pattern with regular expressions in Javascript / jQuery
How can I use jQuery to style /parts/ of all instances of a specific word?
Say I have the code:
<div class="replace">
     <i>Blah</i>
     <u>Blah</u>
</div>
Now, I want to replace all the < within the div with something else. 
If I use $('#div').html().replace('<','somethingElse'); it only replaces the first instance. 
How can I replace all the instances?
Thanks
 
     
    