Using jquery statement within a jquery data object
- by richardverbruggen
As part of a jquery function u use this ajax post statement to get some reaction from a server.
I want to pass some arguments to my test page. But these must be variables and are declared on the previous lines (iid and inst)
How can i put these variables within the data object marked with the XX?
iid = $(this).attr('iid');
inst = $(this).attr('inst');
$.post("test.php", { inst: XX, iid: XX},function(data){
alert("Data Loaded: " + data);
});