Having used the: <input class="required us-phone-number" ...>
method several times,,, It is definitely the way to slip the new feature by the standards! We can all see the simple jq code for implementing this. And keypress always scares me (as a user not a programmer) I hate to be told about my mistakes too early onchange is plenty time for a warning. On 9/28/06, Tim Gossett <[EMAIL PROTECTED]> wrote: > On 9/28/06, Brian <[EMAIL PROTECTED]> wrote: > > Here's an idea: > > > > <label for="foo" class="validate 000h000h00"></label> > > <input name="foo" id="foo" type="text" /> > > What about when you want to change some aspect of the mask? Say, the > phone number mask now needs to handle international numbers as well. > Why not separate the mask from the class name like this: > > <label for="foo" class="validate phoneNum"></label> > <input name="foo" id="foo" type="text" /> > > And put the mask in the jQuery code? > > -- > Tim > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/