yes, you can grab the value of the textbox and match it against a regular
expression
var reg = new RegExp("/[a-zA-Z]/");
if(reg.test("string"))
{
return "valid";
}
else
{
return "not valid";
}

like that


cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone:  1-276-206-8393
E-mail:  mjlaw...@us.ibm.com

'Whether one believes in a religion or not,
and whether one believes in rebirth or not,
there isn't anyone who doesn't appreciate kindness and compassion..'


                                                                       
  From:       nouky <a.noor...@gmail.com>                              
                                                                       
  To:         "jQuery (English)" <jquery-en@googlegroups.com>          
                                                                       
  Date:       08/07/2009 02:45 PM                                      
                                                                       
  Subject:    [jQuery] Regular Expression validation                   
                                                                       






I would like to validate a textbox that numbers cannot be entered into
the text input, how do i do this??? With regular expression??

nouky

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to