U
U
UncleDenn2018-02-11 01:45:03
JavaScript
UncleDenn, 2018-02-11 01:45:03

On the element after adding to the page does not work .click?

My script adds li to the page and after that the jquery .click function does not work on it. I can't figure out why or how to fix it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Varyukhin, 2018-02-11
@UncleDenn

$('#your-wrapper').on('click', 'li', function() {
    // Попробуйте так
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question