Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to call a function using a checkbox

Status
Not open for further replies.

estesflyer

Programmer
Dec 19, 2000
284
US
how can i call a function using a checkbox? like, you have 3 checkboxes, and you click the first one, and hit submit/go/whatever, than the first function is called, and if you check the 2nd box and hit the button, than a second function is called, and etc, etc, etc...

- Rusty
 
instead of doing that, you could always just put your function in the onclick of each checkbox. adam@aauser.com
 
You mean radio buttons don't you? Or are more than one allowed to ba called? "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
ok, what i WAS wanting to do, is like, have 30 different checkboxes, and each of them would be a different search engine to search from, like, you type what you wanna search for, choose the search engine, and then hit search. but what i have done instead, is I have turned it into a listbox, instead of checkboxes. so now, what i wanna do, is have a function get the value of the selected option from the listbox, and then save that as a variable (it will be the URL to search. anyway, i wanna be able to go do a certain webpage depending on what the user chooses from the listbox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top