S
S
Sh00tNik2016-07-29 16:51:11
JavaScript
Sh00tNik, 2016-07-29 16:51:11

How to click in a modal window?

Implementation is required for a specific site, so I will write on its example.
There is a link exchange sape. It is a list in the site search results. List items have "Add to blacklist" buttons. I want to add all positions marked with a checkbox to the ban, but when you click, a modal window appears (OK / Cancel), which actually spoils just onClick on all objects. What could be the solutions to this problem? In general, this business works on ajax and the implementation may be completely different.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Polyakov, 2016-07-29
@polRk

$(selector).trigger('click');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question