to handle the code, or at least I think. So, as showed, I'm basically adding HTML get via AJAX after the submit input clicked (it's a captcha form) that then will be displayed in a modal. The problem is that jQuery doesn't get at the first click the HTML generated at the moment but it get it just at the second click. So I click one time, it generates the HTML but nothing appear. I click the second time, modal appears.
Does anyone know a way to get the selector of the element generated at the moment? I tried with next() but it get the correct selector just at the second click. Specifying the selector directly, same, it works just at the second click.
Up
Обсуждают сегодня