Skip to main content

This can be achieved with jQuery .trigger().trigger() event.

jQuery('#id-of-your-phrase').click(function (e) { e.preventDefault(); jQuery('#id-or-class-of-first-image-YouCanAlsoUse-first-child').trigger('click'); });

jQuery('#id-of-your-phrase').click(function (e) {
 e.preventDefault();
 jQuery('#id-or-class-of-first-image-YouCanAlsoUse-first-child').trigger('click');
});

This code will open the colorbox from First Image (the Big).

Thanks

This can be achieved with jQuery .trigger() event.

jQuery('#id-of-your-phrase').click(function (e) { e.preventDefault(); jQuery('#id-or-class-of-first-image-YouCanAlsoUse-first-child').trigger('click'); });

This code will open the colorbox from First Image (the Big).

Thanks

This can be achieved with jQuery .trigger() event.

jQuery('#id-of-your-phrase').click(function (e) {
 e.preventDefault();
 jQuery('#id-or-class-of-first-image-YouCanAlsoUse-first-child').trigger('click');
});

This code will open the colorbox from First Image (the Big).

Source Link
Mohit Wadhwa
  • 798
  • 1
  • 5
  • 23

This can be achieved with jQuery .trigger() event.

jQuery('#id-of-your-phrase').click(function (e) { e.preventDefault(); jQuery('#id-or-class-of-first-image-YouCanAlsoUse-first-child').trigger('click'); });

This code will open the colorbox from First Image (the Big).

Thanks