The code below is supposed to grab the ?cs=bla&cat=bla values from the link attribute and post it to my .load query...does anyone know where i am going wrong?
//Remove tab info and add gallery
$(".more").click(function () {
var $gallery = $(this).closest('.tab').find('.gallery-holder'),
cat = $(this).attr('href').split('cat=')[1];
if ($gallery.is(':empty')) {
$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat}, function(){
$(this).fadeIn(function(){
$('a.customGal').zoomimage();
});
});
}
$gallery.siblings().fadeOut(function(){
$gallery.fadeIn();
});
return false;
});