Show hidden div based of any value contained in the input field
问题 I have the following mark up of a div that contains a form. The form has a basic search div and an advanced div. <div class="form"> <form> <input type="text" name="first_name"> <input type="text" name="last_name"> <div class="Basic" class="slide"> <input type="text" name="location"> </div> <a class="toggle-link" onclick="ShowDiv('Adv');">+ show advanced fields</a> <div id="Adv" class="slide hidden"> <input type="text" name="first_name2"> <input type="text" name="last_name2"> <input type="text