Hi,
I want to submit a with using jquery as below;
$("#formid").submit();
Its working perfect in all browsers except IE6.
How to make it work in IE6 ??
Hi,
I want to submit a with using jquery as below;
$("#formid").submit();
Its working perfect in all browsers except IE6.
How to make it work in IE6 ??
You could try $("#formid").trigger("submit")
, though I doubt it'll give you a different result.
You probably have an <input name="submit" />
somewhere in your form, which overwrites the function "submit" of the form in IE
I had a similar problem when I was about to submit the form via an A-element. I had set the href attribute to "javascript:;" to let the main jQuery script handle the actual submit but it just wouldn't work in IE6.
jQuery main script:
$(".submitLink").click(function(){
$(this).parent()[0].submit();
$(this).addClass("loading");
});
My solution was to change the href attribute from "javascript:;" to "#".