title: Change Text Color Not Working In Different Browsers
body: <p>I am trying to change the text color of a <code>&lt;span&gt;</code> tag.</p>
  
  <pre><code>&lt;script type="text/jscript"&gt;
  window.setInterval(function(){
      if ($("#sw").css("color") == "red") {
      $("#sw").css("color","blue");
      }
      else if($("#sw").css("color") == "blue") {
      $("#sw").css("color","green");
      }
      else if($("#sw").css("color") == "green") {
      $("#sw").css("color","red");
      }
      }, 1000);
  
  
   &lt;/script&gt; 
  </code></pre>
  
  <p>The above example should change the text color within the <code>&lt;span&gt;</code> tag.</p>
  
  <p>I have tested it in Internet Explorer and it works fine, but it doesn't work in <strong>Google Chrome</strong> or <strong>Mozilla Firefox</strong>.</p>
  
  <p>What is the problem? Do these browsers not support this? Are there any workarounds? What is the solution for this issue?</p>