Imagine there is an element #button1
on website which is watched by jQuery:
$('#button1').click(function(){
console.log("you clicked");
};
So how do I click this #button1
element via JavaScript console? Is there a command like click("#button1")
? Thanks.