Hi, I am trying to submit a form with ajax, the form itself is loaded via a ajax event
The following Jquery code works in FF?chrome. In IE, the form submission is not prevented
$("#admin_main").delegate("#create_user_form", "submit", function (event) {
if (event.preventDefault) {
event.preventDefault();
} else {
event.returnValue = false;
}
$.post('create_user', $("#create_user_form").serialize(), function (data) {
$("#admin_main").html(data);
}, "html");
});
Any workarounds?