Answers for "jquery on click for dynamically added element"

4

document on click dynamic element

$(document).on('click', '.class', function() {
    // do something
});
Posted by: Guest on September-19-2020
0

jquery on click dynamic element

$('body').on('click', selector, function() {
    // do something
});
Posted by: Guest on July-25-2021

Code answers related to "jquery on click for dynamically added element"

Code answers related to "Javascript"

Browse Popular Code Answers by Language