[Resolve] jQuery AJAX POST not sending data to PHP

[Resolve] jQuery AJAX POST not sending data to PHP

from Easy

9 лет назад

10,199 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tim Tim
Tim Tim - 06.06.2021 11:44

Thank a lot ..thats helped me (*_*)

Ответить
Jorge del Campo
Jorge del Campo - 12.07.2019 13:37

Hi man, i have the same problem but, in my case i trying send data without forms (just the div content with json encoding), so there's not submit event. How i can do it?
Thanks!

Ответить
from Easy
from Easy - 27.08.2015 17:24

$(document).ready(function(){
$('form').submit(function(){
$.ajax({
data: $(this).serialize(),
type: $(this).attr('method'),
url: $(this).attr('action'),
success: function(varX){
$('#get_content').html(varX);
}
});
return false;
});
});

Ответить