I've got a grid with code below:
<div>
<table id="grid" class="display">
<thead>
....
</thead>
<tbody></tbody>
</table>
</div>
that is filled with appropriate data via ajax requests. Some <td>
elements also contain dynamically added links. So, when I'm trying to bind click event to them, it doesn't work in IE8.
var $grid = $("#grid");
...
$grid.on("click", "tbody a", function (e) {
e.preventDefault();
alert("clicked!");
});
It works perfectly fine everywhere except IE8.
Could someone explain me, where I'm wrong and how to solve this problem? (I'm using jQuery 1.9.1)