title: Changes Text Colors Via Jquery To Asp .Net Web Application
body: <p>I want to make changes in text colors which is in  tag  as below. </p>
  
  <p><strong>Note:-</strong> The below example is of content page hence jquery  is link to master page.</p>
  
  <pre><code>&lt;script type="text/jscript"&gt;
  window.setInterval(function(){
  if($("#sw").css("color","Red")){&lt;!—text color in Span Tag--&gt;
  $("#sw").css("color","Blue");
   }
  else if($("#sw").css("color","Blue")){
  $("#sw").css("color","Red");
   }
  },1000);
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The above example changes my text colors from Red To Blue but it’s not changes from blue to red as per second condition in jquery.
  What’s The Problem?.</p>