My form sends perfectly well in Chrome and Firefox, with no errors displayed in firebug. However, in IE the form fails to send. I have narrowed it down to the $.post()
function, which just doesnt seem to be called in IE. The callback function works, the call to the php file does not.
I have created a fiddle here - deleted to prevent spam - Enter your own email address in the supplied field. Submitting the form will send a confirmation email to you. This fiddle works in Chrome and Firefox, but not IE.
I have read questions with similar issues, but none solve mine.
In short, why does the $.post()
function not work in IE?
The line in my .js:
var formData = $('#promo-form').serialize();
$.post('http://dynamic.lotterywest.wa.gov.au/promo-order/order.php', formData).always(formSent);