Friday 15 July 2011

javascript - Change the color of a text in div using jquery contains -


Here the whole text inside the red color of the lamp but I only need to change the word "bar" color < Pre> & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD XHTML 1.0 Transcription // N" http: // www .w3.org / TR / xhtml1 / dTD / xhtml1-transitional.dtd ">
html xmlns =" Http://www.w3.org/1999/xhtml "> gt; Top & gt; Title & gt; New Document & lt; / title & gt; & lt; script src =" http: //code.jquery.com/jquery-1.9.1.js ">