It looks like you're new here. If you want to get involved, click one of these buttons!
How can I open a hidden gallery from a textlink? (without referecing an image? just the gallery group name?)
If the element has an id you can use the API to show it.