I have the html form:
<select id="selection" name="type">
<option value="Interior">Interior</option>
<option value="Music">Music</option>
</select>
<select id="whichvideo" name="vidtype">
<option value="">Choose video type</option>
<option value="Youtube">Youtube</option>
<option value="Vimeo">Vimeo</option>
<option id="soundcloud1" value="Soundcloud">Soundcloud</option>
</select>
and the jquery:
$("#selection").change(function () {
if ($(this).find("option:selected").val() === "Music") {
$("#soundcloud1").show();
} else {
$("#soundcloud1").hide();
}
});
with this Fiddle
Why when I select Music
and then return to Interior
in the form. Does it not hide the option Soundcloud