harryvancelaw

Results 3 comments of harryvancelaw

$(document).ready(function(){ $(".bxslider li").each(function(){ var sLink = $(this).find('a').attr('href'); $(this).find('div').click(function(){ window.location = sLink; }); }); });

Once you've enabled captions in bxslider settings isn't there a div within the li that contains the caption which you can target?

It should attach an onclick to that div. I guess you could always regex the div into a link too like below. Have not tested this though. http://pastebin.com/u6ZR8vd7