Answer the question
In order to leave comments, you need to log in
How to correctly send a cross domain ajax request?
Hi all.
There is a form, it has an action that changes dynamically.
You need to send a request using ajax and get a response.
When using this code,
$("#getting").on('click',function(){
$.ajax({
url: $('#someFrm').attr('action'),
type: 'POST',
dataType: 'jsonp',
success: function(data){
console.log(data.respone);
}
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question