Validating textbox using javascript

04 Feb

can we pass texbox as an argument into javascript how to achieve this Thanks in Advance you can do this in two ways.

However, if you prefer a j Query solution you could try something like this.I have been using it for my last few projects and it is pretty nice. gets the runtime generated ID which is different(not always) from server side ID. This is validation to check that entered values are all letters or combination of different chars.Following script will compile the idea of validation for all letters.Most often, the purpose of data validation is to ensure correct user input.Validation can be defined by many different methods, and deployed in many different ways.set validation group property for all validators, summary and button.when you click the button , it will validate all validators from its validation group and display the message.Please refer to the errata for this document, which may include some normative corrections.The previous errata for this document, are also available. This document is also available in these non-normative formats: XML and XHTML with color-coded revision indicators.