The below code works fine in IE. We have a download link which is getting disabled based on a condition. The same code is not working in Chrome.
In Chrome the Link is not getting disabled. Is there an alternative solution for this such that works in Chrome as well?
I have observed in the developer tools
In IE:
<a disabled="" href="#" ...>
In Chrome:
<a href="#"...>
The data-bind="click: $root.studentsp
where the $root
which is not working in Chrome.
We have used a nested loop in the code, this is the relevant Code Block:
<div data-bind="foreach: studentDetails">
<div class="row" id="Items">
<table class="table table-striped branded-table" style="margin-top: 24px">
<tbody data-bind="foreach: cp">
<tr>
<td data-bind="text: Name"></td>
<td data-bind="text: rollno"></td>
<td data-bind="text: Format"></td>
<td>
<a href="#" data-bind="click: $root.studentsp, enable: !$root.isavailable()">displayed</a>
</td>
<td>
</tr>
</tbody>
</table>
</div>
</div>