How can you compare multiple input in the same form if they ALL have the same value? I need to check if they all have the same value or not.
<input type="text" class="inputclass"/>
<input type="text" class="inputclass"/>
<input type="text" class="inputclass"/>
<input type="text" class="inputclass"/>
<input type="text" class="inputclass"/>
....
Try this:
Here is the jsfiddle.net
http://jsfiddle.net/epignosisx/jzWUA/4/
UPDATE======
As @Anurag pointed out, $.unique is only for DOM elements. Here is a different implementation:
Basically uses a function that will truly return a unique array.