Answer the question
In order to leave comments, you need to log in
How to make click actions in jQuery (after click event)?
Good afternoon. I want to make it so that when you click on one element, another element is clicked through jQuery.
Example: by clicking in the text on the word "use the feedback form on our site", the feedback form in the site header immediately worked, opening a modal window.
I kind of imagined it like this:
jQuery("при клике сюда").on("click", function() {
jQuery("кликается данная форма").click(); // не работает
});
Answer the question
In order to leave comments, you need to log in
jQuery("при клике сюда").on("click", function(e) {
e.preventDefault()
jQuery("кликается данная форма").trigger('click');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question