I would like to know if there is a click on an element by clicking elsewhere, something like this:
jQuery
$("#button1").click(function(){
$("#button2").click();
});
I tried this and it did not work.
Taking the example IDs as real; there are a lot of events linked to #button2
and I think the most practical way to fire them when I click on #button1
is this way, because I can not tweak these events internally or link them to #button1
.