[thelist] BUG: Broken Value Attribute for BUTTON Element in IE5+

Jeff jeff at lists.evolt.org
Tue Oct 3 16:40:59 CDT 2000


james,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Aylard JA (James) <jaylard at equilon.com>
:
: <button type="submit"
:   name="MyButton"
:   value="The real value"
:   onclick="this.setAttribute('value','The real value');"
: >The innerHTML value</button>
:
: Of course, the explicit use of the HTML "value" attribute
: here is unnecessary, but is still a wise idea.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

why not just make it the workaround completely solid and refer to the item's
value when setting the expando?

<button type="submit"
  name="MyButton"
  value="The real value"
  onclick="this.setAttribute('value',this.value);"
>The innerHTML value</button>

or does that not work at all?

just curious,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thelist mailing list