Ajax Code with jQuery


jQuery.ajax({
type: “POST”,
url:”url”,
data:{
“survey_form”: ques1,
“driving_boss”: ques2,
“quick_look”: ques3,
},
}).success(function(result){
//jQuery(‘.send_log_details’).show();
alert(“success”);
})
jQuery.ajax({
type: “POST”,
url: add_user_url,
data:{
“user_login”: user_login[0],
“email”: email,
“role”: “subscriber”,
“createuser”: “Add New User”,
},
}).success(function(result){
alert(“success”);
});
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s