I have a form consisting of some input types. When checkbox is not checked, I want all of other input types to disappear and reappear when checkbox is checked.Could you help me with this please? Here is my code:
<form id='sample' action='sample.php' method='post'>
<input type='hidden' name='submitted' id='submitted' value='1'/><br>
<label for='name' >Your Full Name*: </label>
<input type='text' name='name' id='name' maxlength="50" /><br>
<label for='email' >Email Address*:</label>
<input type='text' name='email' id='email' maxlength="50" /><br>
<label for='username' >UserName*:</label>
<input type='text' name='username' id='username' maxlength="50" /><br>
<label for='password' >Password*:</label>
<input type='password' name='password' id='password' maxlength="50" /><br>
<input type="checkbox" name="vehicle" value="Bike"> Hide all!<br>
<input type='submit' name='Submit' value='Submit' />
</form>