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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firing a function for all radio buttons selected on page refresh

Status
Not open for further replies.

fgeorge

Programmer
Jun 28, 2002
76
NG
i have a function that changes the background colour of a cell based on a paramiter value parsed by a radio button.

This function fires on the 'onClick' event of each radio button.It accepts a parameter .

When i refresh the page I want the function to run by checking all the radio buttons in the form and firing the function for all the radio buttons that are checked.

how can I do this?
 
There's some code in your other thread about this that might help. Tut-tut. ;)
 
Since you are refreshing the page, call the same function in the <BODY> tag.

e.g.

<BODY onLoad = &quot;fnNameOfFunction();&quot;>

This will work...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top