Could you please tell me what I am missing, I am trying to prevent more than 5 numbers at a time in my textarea
This is what I have but it wont work:
<script>
var testresults
function checkcomm(){
var str=document.form.COMMENTS.value
var filter=[0-9]:\{5\}
if (filter.test(str))
testresults=true
else{
alert("Please input a comment.")
testresults=false;
}
return (testresults)
}
</script>
This is what I have but it wont work:
<script>
var testresults
function checkcomm(){
var str=document.form.COMMENTS.value
var filter=[0-9]:\{5\}
if (filter.test(str))
testresults=true
else{
alert("Please input a comment.")
testresults=false;
}
return (testresults)
}
</script>