Event handler not working on dynamic content [duplicate]

You have to add the selector parameter, otherwise the event is directly bound instead of delegated, which only works if the element already exists (so it doesn’t work for dynamically loaded content). See http://api.jquery.com/on/#direct-and-delegated-events Change your code to $(document.body).on(‘click’, ‘.update’ ,function(){ The jQuery set receives the event then delegates it to elements matching the selector … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)