When you click the button, it will validate whether the checkbox is ticked and whether the age is less than 18, and display alert messages if so. On a real website, you wouldn't use an alert box, of course. This is just a demo.
This is a demonstration file from Web Design in Easy Steps by Sean McManus.
Back to demo files index.