Preserved Topic: Interesting Bug/Feature (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 06-04-2001 23:11
Some time ago I needed help on how to have multiple submit buttons that passed different values in a single form. Well, with Slime's help I came up with a simple javascript solution to my problem, basically use <input> elements of type button rather than submit, and the onclick attribute can set a hidden element to whatever value you want then use the submit() method. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 06-05-2001 00:21
I've seen sites that do some interesting work using onfocus() and onblur() combined with JS cookies to store form info for situations where you leave forms and comeback to them. |