I have a code like this:
...
<script>
function myfunction(result) {
$(".dyn").prop("innerHTML",result);
}
</script>
...
<table class="dyn">
</table>
<script>
$.post('some_ajax_page',some_value,myfunction);
$(".myeditable").on(blur,myfunction2);
</script>
...
The POST executes correctly and gets the content of the table, which is displayed correctly, and it is like this:
...
<tr><td class="myeditable">...</td></tr>
...
But the TD doesn't have a listener set for blur, even when the listener intends to be set after the POST has returned and its function executed.
Why doesn't the listener get set?