Topic awaiting preservation: Submitting a form based upon form-values (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Berlin, Germany |
posted 01-11-2006 21:10
Hi! code: <input id="f_save" type="submit" name="submit" value="Save Changes"/> <input id="f_delete" type="submit" name="submit" value="Delete Page"/>
|
Bipolar (III) Inmate From: Berlin, Germany |
posted 01-11-2006 21:16
Let me append some details: |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 01-11-2006 21:58
sure... just stick an onclick="return confirm('do you really want to do that?');" into the delete button. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 01-12-2006 01:58
If you want the value of the button you can do something like this code: <input type="button" name="foo" value="bar" onclick="return validate(this)" /> function validate( b ) { alert(b.value); // all your code }
|
Bipolar (III) Inmate From: Berlin, Germany |
posted 01-12-2006 21:25
Thanks for your help. |