Preserved Topic: Messing with mr.maX's scripts |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 12-21-2001 00:28
I've been trying to modify one of the validation scripts mr.maX is kind enough to supply at his site. I think my logic works, but I must be missing something because it still won't work. I have a form with yes and no radio buttons named alert. The form also has a text area with the name new_content. I want the script to send an alert if new_content is blank, but only if the value of the alert radio buttons is set to yes. If the value of alert is set to no, I want the form to be able to be submitted with new_content being blank. Here's what I have tried: |
Bipolar (III) Inmate From: Freakshow, CA |
posted 12-21-2001 03:04
I dont know jack about java script so this is just a shot in the dark. But could radio buttons be using true/false? |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 12-21-2001 03:24
I don't know much about JavaScript either, but I do know that I set the value of the radio buttons in their input tags, so it's yes and no (I think). |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-21-2001 18:26
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 12-22-2001 00:43
Thanks Max!! |