I am trying to use document.getElementById
that is easy also ng-show in Angular.js
I have table in which dynamically populated with three button at each row, when I click select button it shows me the remaining two buttons that are hidden for that row.
<td>
<a ng-click="vm.Select(Survey.Id)" title="{{ 'Select' | translate }}">
<i"><i class="fa fa-edit fa-1x"></i>
<i></a>
</td>
<td id=id="{{Survey.Id}}" style="visibility:hidden" >hidden">
<a ng-click="vm.Update(Survey.Id)" title="{{ 'Update Visit' | translate }}">
<i"><i class="fa fa-save fa-1x"></i>
<i></a>
</td>
<td id=id="{{Survey.Id}} ng-show="updateicon" >">
<a ng-click="vm.AddTask(Survey.Id)" title="{{ 'Add Task' | translate }}">
<i"><i class="fa fa-plus fa-1x"></i>
<i></a>
</td>
On select click:
vm.Select = function(value) {
var test = value;
$scope.updateicon = true;
document.getElementById(value).style.visibility = "visible";
};
On click get the element by id not showing me any button while ng
shows me button for all rows.