单击锚标记获取当前行值

时间:2016-12-05 09:53:42

标签: javascript jquery angularjs

我想在Click of Anchor tag

上访问当前行ItemID值

$scope.Test12 = function() {
  ID = document.getElementById("ItemId"); //Want to access Clicked ItemID Value
}
<tr ng-repeat="customer in customers">

  <td><a ng-href='#here' ng-click='Test12()' onclick="OpenDialog()">{{customer.OldAccount_x002f_Cost_x0020_Elem}}</a>
  </td>

  <td>{{customer.NewAccount_x002f_CostElement}}</td>
  <td>{{customer.Description}}</td>
  <td>
    <input id="ItemId" type="text" name="ID" value={{customer.ID}}>
  </td>
</tr>

0 个答案:

没有答案