[thelist] JavaScript: detecting and undoing radio button chan ge

Carl J Meyer cjmeyer at npcc.net
Wed Apr 2 19:35:47 CST 2003

On Wed, 2003-04-02 at 17:01, Joel Canfield wrote:
> How? Once another is checked, the original obviously isn't. Does JavaScript
> have a retroactive reader that can tell what you just did? ;) Seriously,
> without resorting to 'onblur' how would you do this? Or, is there a way to
> use 'onblur' without driving oneself crazy?

I'm no JS expert, but this doesn't seem too hard.  Keep an extra
variable with the current radio-button state (updated via onChange),
then when necessary you can get the last state from it.


More information about the thelist mailing list