samedi 6 août 2016

angularjs get only selected checkbox

i want to get the selected checkboxes in my loop, for that check box i have to retrive the amount field onclick.

Here is my HTML script :

Amount : Check :
<input type="button" ng-click="checkNow()" />

The below script showing all check boxes . i want the only selected one.

JS Script :

$scope.checkAmount = {};
$scope.checkNow(){
console.log($scope.checkAmount);
}




Aucun commentaire:

Enregistrer un commentaire