Forum Moderators: open

Message Too Old, No Replies

Two onClick in one script?

         

Schoolbag

6:18 pm on Mar 27, 2003 (gmt 0)

10+ Year Member



I have a simple script that when a radio button is clicked a warning pops up. Is it possible to add another "onClick" so that when that button is clicked, the button then is dimmed or hidden?

I use the following for the warning:

<INPUT TYPE="radio" VALUE="WARNING" onClick="alert(value)" NAME="citizen"> No

Receptional Andy

6:32 pm on Mar 27, 2003 (gmt 0)



You can use a semi colon between two functions to execute them both:

onClick="alert(value);do(somethingelse);"