i have this:
$('.gallery a').click(function(event) { event.preventdefault(); window.open ($(this).attr('href'),"gallery","menubar=1,resizable=1,width=500,height=600"); });
basically want happenin when $('.popup a') clicked, how have multiple click events same thing different css classes. hope makes sense.
you can put 2 things in same selector:
$('.gallery a, .popup a').click(function(event) { event.preventdefault(); window.open ($(this).attr('href'),"gallery","menubar=1,resizable=1,width=500,height=600"); });
Comments
Post a Comment