I’ve try to make the label “until” appear when user select for “range”. But the label did not appear.
These are my codes.
<td><select onchange="Show(this,'vin','until1');"
<option value="less">Less than</option>
<option value="more">More than</option>
<option value="range">By range</option>
<option value="is">Is anything</option>
</select>
</td>
<td width="145"><input id="vin" style="visibility:hidden;" type="text"></td>
<td width="145"><label id="until1" style="display:none;"> until </label> </td>
txt=obj.options[obj.selectedIndex].value;
if (txt.match('range')){
document.getElementById(un).show();}
Thanks
show()is method in jquery not in javascript.. try thisor in case of
visibility