javascript - checkbox checked id and name value push array angularjs -


i proper , name values checkbox parent ng repeat. problem is, when checked check box need push id , name values in 1 array. if uncheck remove id , name values.

<tr ng-repeat="user in partylist | filter:{ 'partyrole': 4}:true | filter:searchusers |  myslice:start:end">           <td>             <input type="checkbox" class="tablebox" value="{{user.partyid}}" name="{{user.first_name}}" ng-checked="userbox" ng-model="usermodel" ng-change="getindex(user.partyid,user.first_name,usermodel)" />           </td>            <td>{{user.first_name}}</td>           <td>{{user.email}}</td>           <td>{{user.phone_number}}</td>         </tr>   


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -