On selection of option from drop down menu need to show hidden fields…Ive written the code but its not showing …what might be the error…??
below i my Html Part
<label>CUF PERFORMANCE</label>
   <select id="select" name="options">
<option>Select The Value</option>
<option id="hourly" value="a">Hourly</option>
<option id="daily" value="b">Daily</option>
<option id="monthly" value="c">Monthly</option>
<option id="yearly" value="d">Yearly</option>
</select><br/><br/>
</div><br/>
<input id="dateInput" type="date" style="display:none;">
<input id="timeInput" type="time" style="display:none;">
below is my javascript code
<script>
var select=document.getElementById('select');
var wrappElement=document.getElementById('wrapper');
select.addEventListener('change',function(){
if(select.value=='a'){
document.getElementById("dateInput").style.visibility = "visible";
document.getElementById("timeInput").style.visibility = "visible";
}
} , false);
</script>
Below is jsfiddle link