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

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