function checkNumberWithComma(textBox) {
if ((textBox.value == 0 || textBox.value) && textBox.value.match(/^\d{4,4}(
?:,\d{4})*$/)) {
$(textBox).removeClass("error" );
}
else {
$(textBox).addClass("error");
}
}
function testFunc() {
checkNumberWithComma(document. getElementById("test"));
}
$(document).ready(function() {
document.getElementById(" testButton").onclick = testFunc;
});
if ((textBox.value == 0 || textBox.value) && textBox.value.match(/^\d{4,4}(
$(textBox).removeClass("error"
}
else {
$(textBox).addClass("error");
}
}
function testFunc() {
checkNumberWithComma(document.
}
$(document).ready(function() {
document.getElementById("
});
No comments:
Post a Comment