title: How to check if a string is an int?
body: <p>I have a small if where I'd just like to check a string to see if it is an integer. I am using JQuery to do this. </p>
  
  <p>JQUERY:</p>
  
  <pre><code> var intRegex = /[0-9 -()+]+$/;
  
  
   if ($('#txtGRCSelect').val() != '' &amp;&amp; intRegex($('#txtGRCSelect').val())) {
                          alert("No CASE");
                          $("#ErrorBoxText").html("Error : A Role has not been selected.");
                          rt = true;
                      }
  </code></pre>
  
  <p>It doesn't work, can anybody help me and tell me why?</p>