text: please, help me with javascript!!!? hi! i want to create a form that: _ when i click on the checkbox " don't give more info" ==> all of fields below the check box will be unable to fill in.  _ if user don't click on the checkbox, they must fill all the fields below the check box, and the submit button will alert them to know which fill that they forgot to fill.  please, help me the code in javascript like this or give me any link about this tutorial. :)  thanks you very very much.....:) you'll get actual answers if you post what you have already written (even if it's just the html)  now all you'll get are sites to search!  http://www.w3schools.com  or use a search engine for the topic "javascript form checkbox hide required" will get you right to lots of examples!    assuming your html is : form method="post" action="customer_checkout2.php">     .....    the simplest way is to add an onsubmit handler to the form    where mysubmitfunction  returns true if the fields are entered correctly and false if they are not! false magically stops the submit from submitting!  to do the checkbox, it's the onclick handler, inside there you  make the fields hidden or not depending on the value of the checkbox!  that should help you out... the rest is left for you to discover using google or yahoo search!