Possible Duplicate:
Check if a variable contains a numerical value in Javascript?
How do I check if variable is an integer in jQuery?
例子:
if (id == int) { // Do this }
Im using the following to get the ID from the URL.
var id = $.getURLParam("id");
But I want to check if the variable is an integer.