|
-
Oct 21st, 2005, 10:04 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] multiple onClick events for radiobutton
I need to assign 2 events to my onClick event of a radio button. Is this possible? Like I have one called uncheckAll() and then one called addParam().
Isn there any way to do this in the html code? Thanks!
Last edited by drpcken; Oct 21st, 2005 at 05:52 PM.
-
Oct 21st, 2005, 10:09 AM
#2
Fanatic Member
Re: multiple onClick events for radiobutton
Do you mean when the radio button is clicked you execute 2 different subroutines?
That should not be a problem, do it in the 'OnClick' command. You can embed the onClick command into the ASP if you want to do it without a dll.
-
Oct 21st, 2005, 10:13 AM
#3
Thread Starter
Fanatic Member
Re: multiple onClick events for radiobutton
sorry I wasn't more specific, the two events are javascript. is there a way to fire both during the same event (onClick)?
Thanks for the reply!
-
Oct 21st, 2005, 10:15 AM
#4
Fanatic Member
Re: multiple onClick events for radiobutton
I don't know Javascript that well, but why not have a wrapper function that launches both the other functions? Then you can call a single function from the onClick.
-
Oct 21st, 2005, 10:16 AM
#5
Thread Starter
Fanatic Member
Re: multiple onClick events for radiobutton
I see. Thanks for your input
-
Oct 21st, 2005, 12:33 PM
#6
Re: multiple onClick events for radiobutton
Or just use onClick="function1();function2();"
-
Oct 21st, 2005, 05:51 PM
#7
Thread Starter
Fanatic Member
Re: multiple onClick events for radiobutton
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|