I echo a whole table to the div and then I can't access the id of it by some reason via jquery, what should I do?
I don't know how to ajax the datatable so I echo the whole table with post and it all work fine.
No error just can't access ID of button In the table I echo
I don't know what line of code I should provide here because everything work fine except I can't access the id of the button in the datatable that I echo from fetch.php to index.php
I checked with inspect mode and the ID are there with everything (ex. $(#'PROID112').click(function() ) <- the id of the buttons was all in place
Solution: I fixed it myself by changing
$('#id').click(function())
to
$(document).on('click', '#id', function()
thank you everyone for your answer ;)