Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing unwanted characters

Status
Not open for further replies.

techu4

Technical User
Jun 27, 2005
32
GB
Hi all,

I have a web form that I need to be checked for commas and other characters. If the fileds are found to have any pf the characters in then i want the script to strip out these characters and update the fields.

Can anyone help me on this.

Regards

Techu4
 

I suggest you look at regular expressions. You can either run all form element values through a validation function using onchange() or maybe do a single "uber" validation before deciding to let the form be submitted (or not).

Let us know how you go,
Jeff

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top