javascript If statement no working
<p>This is driving me crazy - basically this if statement is not working. The code keeps jumping into the else statement, I have hovered over the buttonText and everything seems alrite until it hits the conditions.</p>

<pre><code>function DesignCodeViewClick(el) {

  $("div.divdesigncodeviewbuttonsselected").attr("class", "divdesigncodeviewbuttons");
  $(el).attr("class", "divdesigncodeviewbuttonsselected");

  var buttonText = el.innerText;

  if (buttonText.toLowerCase() == "design") {
      $("#iframecms").css("display", "none");
      $("textarea.divhtmleditor").css("display", "none");
  }
  else if (buttonText.toLowerCase() == "browse") {
      $("#iframecms").css("display", "block");
      $("textarea.divhtmleditor").css("display", "none");
  }
else {

      $("textarea.divhtmleditor").css("display", "block");
      $("#iframecms").css("display", "none");
      WebForm_DoCallback('SEOCMSControl1', 'getcode~http://www.triksportfolio.com', GetCodeServerResponse, null, null, true);

  }

}
</code></pre>
