jquery - Adding on click event to Galleria link using JSON -


i have set first galleria gallery using json.

would possible add function on click event each of 4 links have 4 images?

is there way add variable json data or assign class each individual image?

the analytics cms uses has called via on click function essential on site.

many thanks, h

would possible add function on click event each of 4 links have 4 images?

yes, can bind amount of handlers same event. (as usual):

$("selector").click(function(){    //your code here }); 

is there way add variable json data or assign class each individual image?

i don't know how galleria's json structure, if have selector, can add class (as usual) as:

$("image_selector").addclass("classname"); 

sorry if things seemed obvious you. hope helps.


Comments