I have a array of labels which i used display looping over using ng-repeat. I have a checkbox implemented and a label(inside a span) adjacent to it. I want to check the adjacent checkbox when the user clicks on the corresponding span element.
<bv-checkbox ng-model="i.checked" ng-change="inputChanged()""></bv-checkbox>
<span ng-bind="i.displayName"></span>
I do not have an id in place hence i cant use label "for" property. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire