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.

18
  • 10
    On one hand it's simple and prevents all the pitfalls suggested by the accepted answers. On the other hand, it feels like a slight exploitation of the standard. Kudos for including aria-* attribute. I would love to hear more feedback on this. Commented Oct 2, 2018 at 20:09
  • 5
    Also works as <input type="submit" disabled style="display: none" aria-hidden="true" /> and you can reduce the size of your page by a few chars. :-P Commented Nov 28, 2018 at 4:21
  • 9
    IE 11 submits anyway. Commented Mar 5, 2019 at 6:51
  • 5
    This does not work on Safari, other browsers seem okay Commented Mar 20, 2020 at 15:53
  • 2
    This doesn't seem to work with Firefox anymore. Version 96 is installed. Commented Jan 11, 2022 at 9:16