This question is locked. New answers and comments are not allowed.
can anyone tell me what i am doing wrong here. which ever option i select from dropdown. other os field is disappearing.
<p>Operating System:
<select name="OS" data-bind="event: otheros() required>
<option value="">-- Select an Option --</option>
<option value="Win">Windows</option>
<option value="ios">iOS</option>
<option value="otheros">Other</option>
</select>
</p>
<div id="osother">
<p>Please Specify:
<label id="oslabel">
<input name="Other OS" type="text" placeholder="Other OS" size="50" />
</label>
</p>
</div>
otheros: function(value){
if(this.value === 'otheros'){
$('#osother').show();
}else{
$('#osother').hide();}}
<p>Operating System:
<select name="OS" data-bind="event: otheros() required>
<option value="">-- Select an Option --</option>
<option value="Win">Windows</option>
<option value="ios">iOS</option>
<option value="otheros">Other</option>
</select>
</p>
<div id="osother">
<p>Please Specify:
<label id="oslabel">
<input name="Other OS" type="text" placeholder="Other OS" size="50" />
</label>
</p>
</div>
otheros: function(value){
if(this.value === 'otheros'){
$('#osother').show();
}else{
$('#osother').hide();}}