I dynamically create in my View via razor data that is populated in a table.
In my last td I have the following elements:
<td class="row-actions fixed-col"><a name="excFaturamento"><i class="fa fa-times"/></a></td>
This element was not created at the time of
$(document).ready
In my .js file I put it like this:
$('[name="excFaturamento"]').on('click', 'a', function () {
Remembering that my table is mounted via razor with data that is inside a viewbag, ie the page will never be loaded before the document ready.
But the same does not catch my click event. Can anyone help me?