Jun 25, 2002 #1 schase Technical User Sep 7, 2001 1,756 US Hi all, Was looking to validate exactly 17 characters (letters or numbers) - preferrably when the cursor goes off of the field and onto another one. Any ideas? Thank you "Damn the torpedoes, full speed ahead!" -Adm. James Farragut Stuart
Hi all, Was looking to validate exactly 17 characters (letters or numbers) - preferrably when the cursor goes off of the field and onto another one. Any ideas? Thank you "Damn the torpedoes, full speed ahead!" -Adm. James Farragut Stuart
Jun 25, 2002 1 #2 SashiRaveendran Programmer Nov 6, 2001 865 GB <html> <head> <script> function CheckLen(txt) { if (txt.length<17) { alert("Please enter a minimum of 17 characters" document.frm.txtBox.focus() } } </script> </head> <body> <form name="frm"> <input type=text name="txtBox" onblur="CheckLen(this.value)"> </form> </body> </html> Upvote 0 Downvote
<html> <head> <script> function CheckLen(txt) { if (txt.length<17) { alert("Please enter a minimum of 17 characters" document.frm.txtBox.focus() } } </script> </head> <body> <form name="frm"> <input type=text name="txtBox" onblur="CheckLen(this.value)"> </form> </body> </html>
Jun 25, 2002 #3 Meteorlet Programmer Jun 22, 2002 3 CN You can use regular expression pattern=/~((\d)||[a-z]){17}$/; Upvote 0 Downvote
Jun 26, 2002 Thread starter #4 schase Technical User Sep 7, 2001 1,756 US worked great, thank you sjravee - and thank you also for your response Meteorlet "Damn the torpedoes, full speed ahead!" -Adm. James Farragut Stuart Upvote 0 Downvote
worked great, thank you sjravee - and thank you also for your response Meteorlet "Damn the torpedoes, full speed ahead!" -Adm. James Farragut Stuart