Skip to content
Advertisement

jQuery process dynamically added anchor tags isn’t working

jQuery doesn’t process dynamically added anchor tags. The <li> <a> tags are added more dynamically. The below code works to add attributes for the anchor’s tags that are already there but more pagination is added by XHR AJAX calls and the .each() function doesn’t work.

JavaScript
JavaScript

Advertisement

Answer

Please try below code when you find your code is not working after AJAX:

JavaScript

Please let me know if you find any issues.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement