S
S
SergZay2015-11-06 20:25:23
JavaScript
SergZay, 2015-11-06 20:25:23

Why doesn't the script work in the pop-up window?

The form opens in a modal window.
When the input is clicked, a class should be added.
So it works on the site, but not in the modal window.
Why?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2015-11-06
@Taraflex

bitvaextrasensov.tnt-online.ru

W
wol_fi, 2015-11-06
@wol_fi

My psychic suggests that you hang the event before the element is created.
Use jQuery('parent static selector').on('event', 'selector', callback);

S
SergZay, 2015-11-18
@SergZay

Question removed.
Changed to another script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question