Topic: telephone number input |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: beyond the gray sky |
posted 09-17-2010 22:39
hi all. I'm having some trouble and was hoping someone might be able to help me out. code: function validate_phone(current, destination) { current.value=current.value.replace(/[^\d]/,''); if (current.getAttribute&¤t.value.length == current.getAttribute("maxlength")){ destination.focus(); destination.select(); } }
code: <input type="text" id="areaCode" size="2" maxlength="3" onkeyup="validate_phone(this, document.contact.prefix);"> <label>) </label> <input type="text" id="prefix" size="2" maxlength="3" onkeyup="validate_phone(this, document.contact.suffix);"> <label>-</label> <input type="text" id="suffix" size="3" maxlength="4" onkeyup="validate_phone(this, document.contact.body);">
|
Paranoid (IV) Inmate From: beyond the gray sky |
posted 09-25-2010 11:26 |
Maniac (V) Inmate From: The Pool Of Life |
posted 09-26-2010 16:29 |
Paranoid (IV) Inmate From: beyond the gray sky |
posted 10-02-2010 13:23
well, I gave up on trying to get the "auto tab" feature to work. |
Lunatic (VI) Mad Scientist From: The Happy Hunting Grounds... |
posted 10-02-2010 22:00
What the hell is a blind melon, anyways? |
Paranoid (IV) Inmate From: beyond the gray sky |
posted 10-02-2010 23:59
from http://en.wikipedia.org/wiki/Blind_Melon#Naming_of_the_band quote:
|
Maniac (V) Inmate From: The Pool Of Life |
posted 10-03-2010 01:16
quote: |
Paranoid (IV) Inmate From: beyond the gray sky |
posted 10-03-2010 03:23
message received. |
Nervous Wreck (II) Inmate From: |
posted 05-31-2011 11:00
Edit TP: spam removed
|