hi ... you have to get the values out of your textboxes and simply compare them ... you may compare them like this:
-
var value1 = 'inputvalue1';
-
var value2 = 'inputvalue2';
-
var value3 = 'inputvalue3';
-
-
// if value1 matches value2 and value1 matches value3 then value2 must
-
// match value3 ... so we needn't to compare them explicitly
-
-
if (value1 == value2 && value1 == value3) {
-
// all 3 values match
-
} else {
-
// one of the values doesn't match
-
}
-
note ... think you should check before this whether the value1 == '' or not ... in that case the user didn't enter a value and it seems that you want him to do so ...
may be you want to check for some length of the input or characters too ... do that before comparing the values 1-3 ... you always only need to check value1 for that ... last step compares value2 and value3 to the validated value1 only ...
hope this helps ...