How is it possible using javascript to make the options in a dropdown select list dependant on radio buttons?
I'd like only the neuter and vasectomy methods to appear when the radio button for "male" is selected, and only the spay and tubal ligation methods to appear when "female" is selected.
I currently have them all in the one box, it's all within <pre></pre> tags.
<b>GENDER</b> <input type=radio name=gender value=male>Male <input type=radio name=gender value=female>Female
<b>DESEXED</b> <input type=radio name=desexed value=no>No <input type=radio name=desexed value=yes>Yes <select name="method"><option selected value="">- Which Method? -<option value="Castration">Castration (Neutered)<option value="Vasectomy">Vasectomy<option value="Ovariohysterectomy">Ovariohysterectomy (Spayed)<option value="Tubal Ligation">Tubal Ligation</select>
I was also wondering if the dropdown list could start as invisible and appear only when "Yes" radio button for "Desexed" is clicked, and how I could make it so the "Yes" button wouldn't work until either "male" or "female" was selected as the gender. Thanx in advance.
I'd like only the neuter and vasectomy methods to appear when the radio button for "male" is selected, and only the spay and tubal ligation methods to appear when "female" is selected.
I currently have them all in the one box, it's all within <pre></pre> tags.
<b>GENDER</b> <input type=radio name=gender value=male>Male <input type=radio name=gender value=female>Female
<b>DESEXED</b> <input type=radio name=desexed value=no>No <input type=radio name=desexed value=yes>Yes <select name="method"><option selected value="">- Which Method? -<option value="Castration">Castration (Neutered)<option value="Vasectomy">Vasectomy<option value="Ovariohysterectomy">Ovariohysterectomy (Spayed)<option value="Tubal Ligation">Tubal Ligation</select>
I was also wondering if the dropdown list could start as invisible and appear only when "Yes" radio button for "Desexed" is clicked, and how I could make it so the "Yes" button wouldn't work until either "male" or "female" was selected as the gender. Thanx in advance.