If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I am really sorry I was meant to say radio boxes!!!! (Yesterday was a very long day!)
Can't believe I typed out a whole question saying check boxes instead of radio button! (you can only select one at a time - so yes definitely radio button and not checkbox! - sorry about that!)

Thanks again I will report back!!

Originally Posted by JMRKER

Yes, you can use checkboxes, but it is much cleaner to use radio buttons.
Modify this to your heart's content.

I have used php to make sure the checkbox remains selected after the form is submitted.

Is there a way to run the function if a checkbox is checked rather than only on 'onclick'

Thank you so much once again!

Did you mean to write radio buttons or do you actually want a checkbox?

I'm not sure what you're asking in your second line, onClick does just that. Are you saying to run a function to check whether a particular button is already selected when the page loads? Unless you're forcing the button or box to be checked, it'll be refreshed by the browser when the page loads. If you're storing the result in a cookie or session, then empty it and un-check the box or button.