Click to See Complete Forum and Search --> : radio button checking on page load


marko_one
03-28-2003, 07:59 PM
I Know this is a javascript problem, but I need to populate (check) a radio button from values obtained from a database. There are 2 radio buttons in the same group. When the page loads it populates text boxes based on the returned record of the table. This has not been a problem, but I also have to populate the radion button with the value returned. There is one record shown on the page and I want to be able to check the relevant radio button by for example
'onload=populateRadio(<%radioChoice%>)' but I cant seem to pass in the <%radioChoice%> variable.

Can anybody help me on this one?

Thanks

Marko.