Check box function

ok so i have a check box which loads up on my page, and when you click on the check box it starts a function.

I changed it so when the page loaded the check box was selected, however the function that its supposed to do when selected doesnt work unless you select it off and on again? any ideas

Guess your talking about javascript right?

Javascript actions often work on events. For example a function may be run when a user hits a button.

If you want to execute a function immediately after page load you can call this function just on the first rule of your code.

1 Like

Right, I’ll have another look, thanks for the info

Sponsor our Newsletter | Privacy Policy | Terms of Service