Ian Vink
Ian Vink

Reputation: 68770

jQuery - Call click

I have this jQuery which adds a click event to the selected object (from jQuery LightBox):

$('#jquery-overlay,#jquery-lightbox').click(function() {_finish();});

How in code would I call the click event?

Upvotes: 2

Views: 2902

Answers (2)

ndim
ndim

Reputation: 37797

$('#jquery-overlay,#jquery-lightbox').click()

Or what exactly is it that you are asking?

Upvotes: 0

Quintin Robinson
Quintin Robinson

Reputation: 82345

$('#jquery-overlay,#jquery-lightbox').click();

If there is no param passed it will invoke the function rather then assign it.

See the documentation at: http://docs.jquery.com/Events/click

Upvotes: 5

Related Questions