Andy
Andy

Reputation: 3021

sending more than one variable with .load in jquery

Currently i have one variable (cat) how can i send another one as "CS"?

$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat}, function(){
            $(this).fadeIn(function(){
                $('a.customGal').zoomimage(); 
            });
        });

Upvotes: 1

Views: 120

Answers (2)

Ali
Ali

Reputation: 267077

$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat, cs:'cs', anotherVar : 'xyz'}, function(){
            $(this).fadeIn(function(){
                $('a.customGal').zoomimage(); 
            });
        });

Upvotes: 1

Luca Matteis
Luca Matteis

Reputation: 29267

$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat, 'CS': cs}, function(){

It's just a regular JavaScript object.

Upvotes: 2

Related Questions