Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • It must be something on my end cause i tried that and it still does not work. It seems to me that IE7 , IE8 , FF and Safari have type="button" as the default too...maybe I will just leave it undeclared Commented May 9, 2010 at 21:30
  • No, that's definitely not correct: all the "good" browsers follow the W3C spec, which stipulates that the default type is "submit". (Well that's in "standards mode"; if you're in quirks mode, well (A) I don't know what they do and (B) get out of quirks mode.) Commented May 9, 2010 at 22:18
  • Also, that definitely works in IE. What do you mean, exactly, when you say "it still does not work"? Do you get a Javascript error? Commented May 9, 2010 at 22:19
  • sorry guys, what i ment was that the browser throws back an error about jquery here it is : Message: Object doesn't support this property or method Line: 20 Char: 49 Code: 0 URI: example.com/js/jquery.js it is odd because it points to the jquery file not my script. Commented May 9, 2010 at 22:39
  • That's because the exception happens when jQuery actually tries to set the attribute. Make sure that you don't set the attribute with the jQuery attr() function! Commented May 10, 2010 at 0:33