I have three <input type="text" />
and each one has a button associated with it.
ie
TextBox1 --> Submit1 TextBox2 --> Submit2 TextBox3 --> Submit3
I want Validation to occur only on the corresponding textbox only. If user click Submit2 only validation occurs on TextBox2.
How can I do this?
I am not that good with jQuery, but I suppose one way you can do it is to handle the validation with each button click. Here is the html/javascript for the followinng jsfiddle I setup:
});
Insted of doing it by id you could have a class. such as textbox on the text boxes then you could do
Javascript
HTML
jsfiddle http://jsfiddle.net/FERMIS/zE6uK/1/
You could put them in separate
<form>
s and have a single submit button per form.