Sridhar_Rao
In the zone
Guys, here is the situation. There are four elements in the form, let's say:
I want to ensure that data entered by the user is not identical in any of these elements. I mean no two elements can have same value. How can this be done in javascript with minimal coding?
Note: It is possible that one or more them may be left blank by the user.
Code:
<input type="text" name="a1" id="a1">
<input type="text" name="a2" id="a2">
<input type="text" name="a3" id="a3">
<input type="text" name="a4" id="a4">
I want to ensure that data entered by the user is not identical in any of these elements. I mean no two elements can have same value. How can this be done in javascript with minimal coding?
Note: It is possible that one or more them may be left blank by the user.
Last edited: