hide parts of a form until the 1st item is selected

this code can be used when you just want to show the 1st field on a form then when it is selected it shows the rest of the form elements

HTML

<form>
<div class='form-row'>
<input type='text' placeholder='Hi im the 1st Row' onclick="document.getElementById('hidden_form').style.display = 'block';">
</div>
<div id='hidden_form' style='display:none;'>
 <div class='form-row'>
 <input type='text' placeholder='Hi im the 2nd Row'>
 </div>
 <div class='form-row'>
 <input type='text' placeholder='Hi im the 3rd Row'>
 </div>
 <div class='form-row'>
 <input type='submit' value='Save Me!'>
 </div>
</div>
</form>

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹

Random Quote
Our brains are wired to find things we are looking for - if your always cynical or waiting for things to go wrong, then your life will reflect that. On the other hand, having a positive outlook on life will bring you joy and provide you with inspiration when you least expect it ☀️🍉🌴
Unknown