Determine if JavaScript value is an "integer"?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/600763/check-if-a-variable-contains-a-numerical-value-in-javascript">Check if a variable contains a numerical value in Javascript?</a>  </p>
</blockquote>



<p>How do I check if variable is an integer in jQuery?</p>

<p>Example: </p>

<pre><code>if (id == int) { // Do this }
</code></pre>

<p>Im using the following to get the ID from the URL.</p>

<pre><code>var id = $.getURLParam("id");
</code></pre>

<p>But I want to check if the variable is an integer.</p>
