title: changing the color of the text using jquery
body: <pre><code>$(document).ready(function () {
              $("#btnhighlight").click(function () {
                  alert("yes");
                  var htext = $("#txthighlighttext").val();
                  $("#lstCodelist option").each(function () {
                      var sp = $(this).text();
                      var sp1 = sp.split(' ');
                      $.each(sp1, function (i, l) {
                          if (l == htext) {
                              l.css('color', 'yellow');
                          }
                      });
                  });
              });
          });
  </code></pre>
  
  <p>var x = "hello world";
  I need to change the text color on l. that is suppor I got the text from the string "hello".
  css(
  Can I do <code>l.('color', 'yellow');</code> I am getting javascript error.</p>
  
  <p>if I do like this <code>$(this).css('color', 'yellow');</code> Nothing happening. </p>
  
  <p>thanks</p>