Post custom parameters in Ajax using jQuery

Use below code as per your requirement

$.ajax({
url: "text.php",
type: "POST",
data:{ 'campaign_name': cam_name,'contacts_list':'1,2,3','group_list':'11','sms':'Hello World','speech_text':'Hi Anna, Arun this side', },
success: function(data){
alert(data);
},
error: function (jqXHR, textStatus, errorThrown){
alert('Error adding / update data');
}     
});

Comments

Popular posts from this blog

Creating Protected routes in ReactJS

Redirect http to https in codeigniter