$('#ajaxForm').ajaxForm({ beforeSubmit: function(a,f,o) { o.dataType = 'script'; }, success: function(data) { } });