Комментарии:
Thank a lot ..thats helped me (*_*)
Ответить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!
$(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;
});
});