I have a form with three input's including image file. When i submit my form with "form action="upload.php" it works fine. But when i try to do it in ajax it shows me "THERE IS NO RESPONSE". Could anyone tell me how to do it.....?
ajax Code:
//
$('#uploadForm').submit(function(e)
{
e.preventDefault();
$.ajax(
{
url: url+'images/ajaxupload.php',
jsonp: "callback",
dataType: "jsonp",
method: 'post',
data: $('#uploadForm').serialize(),
success: function(){
alert('Image Uploaded');
}
});
});
//