Fixing the POST value of the button element in IE 7 and below

Published on Thursday, May 19, 2011

Please see this write up for the exact issue. Basically, IE 7 and below do not properly submit the "value" of the <button> tag, opting instead to submit the innerText. We just hit this issue while testing with our users who used IE7 on a project I'm on.

Here is the fix I'm using which I prefer to all the other alternatives I saw in the comments of that post. It meets two of my objectives:

  • It's totally transparent
  • It's only for IE 7 and 6
About Kamran
I'm a technologist, speaker, and Pluralsight author and I specialize in building full-stack solutions with a focus on modern web technology and cloud native architecture.
comments powered by Disqus
comments powered by Disqus