To add a validity test to all text input elements: : Form TextBox « jQuery « JavaScript DHTML






To add a validity test to all text input elements:

 


$("input[@type='text']").change( function() {
  // check input for validity
});

   
  








Related examples in the same category

1.Change text field CSS
2.Set textbox value
3.Text box selected event
4.Text input change event
5.Find the value of an input box.
6.set the value of select elements, but selecting the appropriate options.
7.Focus event fires when an element receives focus either via the pointing device or by tab navigation.