function validate() {
var i = 1;
<pre lang="cs">$nc("#grdsample tr").each(function () {
if (i != 1) {
var id = $nc(this).find("input[type='hidden']:first").val();
var name = $nc.trim($nc(this).find("input.txtname:first").val());
var dropdownitem = $nc(this).find('.ddltest1:first').val();
}
)};
i++
}
this is not exact code ..please refer this and make it in your way...above code is used to validate each row of the grid view in add new row click...