$.ajax({
url : 'http://foysalremon.me/', // Replace with your ajax url
type : 'GET',
data : {
'numberOfWords' : 10 // Replace with your data's
},
dataType:'json',
beforeSend: function(xhr){
// Do something before sending request
},
success : function(data) {
alert('Data: '+data); // Success callback
},
error : function(request,error){
alert("Request: "+JSON.stringify(request)); // Error callback
}
});