0

I am passing one variable successfully
any body help me to pass two variables to ajax page

$.ajax({
type: "POST",
url: "fetch_st_name.php",
data: "sid=" + sid,
cache: false,
beforeSend: function() {
$('#display1').html('<img src="loader.gif" alt="" width="24" height="24">');
},
success: function(html) {

$("#display1").html(html);
}
});

I am passing one variable. data: "sid=" + sid,
i want to pass multiple variable
any body help me

3
Contributors
5
Replies
22
Views
2 Years
Discussion Span
Last Post by phoenix254
1

var data = 'key='+ value + '&key='+ value;
or
var m_data = new FormData();
m_data.append( 'key', value);
m_data.append( 'key', value);

Edited by Vivek_13

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.