E
E
exedis2015-09-21 20:26:34
JavaScript
exedis, 2015-09-21 20:26:34

How to pass multiple parameters through load?

How to pass multiple parameters via load ?
tried like this:

function test(){
   $("#status").load("save.php","valid="+$(".off").val(),"ids="+$("#button").val());
};

Nothing comes out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
exedis, 2015-09-21
@exedis

and I figured out who should need it:
$("#status").load("save.php","valid="+$(".off").val()+"&ids="+$(". buttons").val());

N
nepster-web, 2015-09-21
@nepster-web

api.jquery.com/load

$( "#feeds" ).load( "feeds.php", { limit: 25, 'test': 1, 'test': 2 }, function() {
  alert( "The last 25 entries in the feed have been loaded" );
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question