I am trying to make the first word of a sentence (a title from a generated feed) bold.
TURN THIS: <div id="title"> <a href="123.html">One Two Three</a> </div> INTO THIS: <div id="title"> <a href="123.html"><strong>One</strong> Two Three</a> </div> I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $("#title.a").contents(0).wrap("<strong></strong>"); Any help would be greatly appreciated.