Miguel Ramirez
Miguel Ramirez

Reputation: 83

Sending var with load jquery

I don't know why doesn't work:

function Client(wuku) {
    $("#show").load('source.php #showclientapp?weke=' + wuku);
};

I want to know how I can make this part ?weke='+wuku work with #showclientapp. I want to send the variable wuku to source.php #showclientapp.

Any answer would be really helpful.

Upvotes: 1

Views: 33

Answers (1)

Rory McCrossan
Rory McCrossan

Reputation: 337560

The querystring should be provided to the PHP file not the selector, like this:

function Client(wuku) {
    $("#show").load('source.php?weke=' + wuku + ' #showclientapp');
};

Upvotes: 1

Related Questions