Pages

Adding a link click function on page load

Automatically adding a link's click function. Useful to load  a pop up or a lightbox plugin which works only on click function of a link.

$(document).ready(function() {
   $('#lightboxlink').click();
});


||

$(document).ready(function() {
   $('#lightboxlink').trigger("click");
});

No comments:

Post a Comment

Search This Blog