-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open gallery from other button? #474
Comments
Hi, Method 1:Use lightGallery dynamic mode Method 2:Trigger click event with jQuery : $('#mybutton').on('click', function() {
$('.first-item').trigger('click');
}); |
Hi Sachin, I tried to trigger click event with jQuery using Method 2 you mentioned above but it didn't work. Please review my code. I have a Zoom icon with id "zoom-btn": For the script: $(document).ready(function() { I clicked on the button and it didn't run. Please give me some suggestions. Thanks, |
You have a class name zoom-btn not an id, to reference a class use |
Here is a snippet without using jquery in case anyone is looking for in the future:
|
I will finding solution for click button and open gallery and integrated from lightslider
I not sure It's possible to do like this.
Anyone can suggestion?
Thanks
The text was updated successfully, but these errors were encountered: