Validating textbox in gridview

This Java Script can limit the characters added into the Text Box.For examples on how to check if a Text Box contains a number (and how to restrict this using Java Script) please check out the article about How to check if a Text Box contains a number).

This returns a boolean which indicates whether or not the character will be added to the Text Box's value.Here is the HTML rendered demo, In this requiredfield validator js code is not included, So It will not work.In following demo, Change qty in textbox, You will get total amount auto calculated: Hope, It helps.Also, I had to make sure that the textbox is not left blank when "Other" is selected.Make sure that a value is selected from the country dropdownlist.

Leave a Reply