Form is not submit using ajax.form submit on click li. Give me some solution
My js code is here
$(document).ready(function(){
$(\'#sortable li\').click(
Have you tried return false at the end of your submit function?
$("#frmgallery").submit(function(e) {
e.preventDefault();
var formdata = $(this).serialize();
alert(formdata);
$.ajax({
type: "POST",
url: "gallery.php",
data: formdata,
success: function(){alert('success');}
error: function(){alert('error');}
});
return false;
});
$('#sortable li').click(function() {
$("#frmgallery").submit();
});
Also post what you get from $.ajax
call