Not getting the values of table row's HTML controls after binding the table by angularjs ng-repeat, by below code
$(".btnAddToCartClass").click(function () {
var item = $(this).closest("tr").find(".ddlCategoryClass").val();
var itemQty = $(this).closest("tr").find(".txtQuantityClass").val();
var itemCondition = $(this).closest("tr").find(".chkUrgentClass").is(':checked');
alert(item + ' ' + itemQty + ' ' + itemCondition);
});
<table id="TblAdminDash">
<tbody ng-repeat="IL in ItemsListForOrder">
<tr>
<td ng-bind="IL.ItemName"></td>
<td>
<select class="ddlCategoryClass" id="ddlCategory"
ng-model="ddlCategory">
<option value="" disabled>Select Category</option>
<option value="DryClean">Dry Clean</option>
</select>
</td>
<td>
Qty
<input id="txtQuantity" class="txtQuantityClass"
type="number" max="10000" min="1" value="1" />
</td>
<td>
<input type="checkbox" id="chkUrgent" ng-model="chkUrgent"
class="chkUrgentClass"/> Urgent
</td>
<td>
<input type="button" class="btnAddToCartClass" value="Add"/>
</td>
</tr>
</tbody>
</table>
I tried by jquery like above before binding its worked as expected but after bind the table its not working..