If a user adds more then say 22 characters in the textarea, I want
to alert them and not let the page get submitted. Here is the problem, the alert comes up but the page still gets submitted.
Here is all my code.
Thanks,
S
<script language="javascript">
var strNIINList...
I have a string that will be dynamic but will look like this: '111111111,221212121,123214541,455554845' (etc)
What I need to do is add a space after each comma, the length of the numbers after each comma will always be 9. So I need the above string to look like this.
'111111111, 221212121...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.