title: Checking field values in IE
body: <pre><code>if($("#Fees_ProfitType:checked").attr("val") == 29751)
                  {
                      FormatAsMoney(this, 10000000000, true); 
                  }
                  else if($("#Fees_ProfitType:checked").val() == 29751)
                  {
                      FormatAsMoney(this, 10000000000, true); 
                  }
  </code></pre>
  
  <p>So I have this setup in javascript. When it runs through for Firefox, it notices the first if() as undefined, so it runs to the second, and formats the field.</p>
  
  <p>When I run it through as IE it calls <code>if($("#Fees_ProfitType:checked").attr("val")</code>, and returns 29751, however when I compare them, it doesn't equal and won't alert.</p>
  
  <p>What am I doing wrong?</p>