i have a text boxes in every row with same name like this
<tr>
<g:textField name ="point" value = "" class = "destination_points" id ="point_0" />
<input type ="hidden" value ="" name ="pointDistanceMapping.point.id" id ="point_id_0" class="point_id"/>
</tr>
<tr>
<g:textField name ="point" value = "" class = "destination_points" id ="point_1" />
<input type ="hidden" value ="" name ="pointDistanceMapping.point.id" id ="point_id_1" class="point_id"/>
</tr>
<tr>
i have to validate that these text boxes should not have same value so how can i do it using jquery…
you could add all the values in an array one at a time and check to see if it exist before adding. Check out this fiddle