$('#add-asset-form').submit(function(){
//if (validate_asset_form()) {
$.ajax({
type: 'POST',
url: 'wp-content/themes/tvmarketing/assetform/ajax-req.php',
cache: false,
data: $('#add-asset-form').serialize(),
error: function(){ alert('error'); },
success: function(data){
alert('sucessful');
$("#ajax-res").html(data);
$('#edit-id').val('');
$('#add-asset-form')[0].reset();
}
});
//}
return false;
});
Why does this not work in IE6? It works fine in FF. When I run this in IE6 I get the "error" alert. Can someone please guide me in the right direction.
Thanks