過濾非數字字符的正則表達式以及返回光標

//Regular Express to filter the character ,return bool
function ValidNumber(inpString) {
   return /^[-+]?\d+(\d+)?$/.test(inpString);
}
//return the cursor to where judge
$('#id').focus();
相关文章
相关标签/搜索