Reputation: 265
How can I do something like this?
alert('Im gonna get you!');
$('#some-id').css({"display": "none"});
OR
alert('Im gonna get you!');
$('#some-id').trigger('click');
I thought anything that's called after alert() will be executed after clicking ok?
Please advice. Thank you.
Upvotes: 3
Views: 354
Reputation: 32719
I'm not sure what you're looking at. But it seems to me that the alert function is blocking, execution doesn't continue until the user clicks ok. Try running your own code, or this JS Fiddle and see it in action!
Upvotes: 1