javascript - Visibility of select tag -
i trying play visibility of select tag,
here html code;
<div id="dialog"> <label id="">hi</label><input type="text" id="input-name" /> <select id="select-asd" class="selectpicker" name="name" style="display:none;" hidden></select> </div>
i've tried visibility , display properties, not result.
here javascript code;
var selectasd = document.getelementbyid( 'select-asd' ); selectasd.style.display = 'none';
thanks in advance
update** think problem because of "selectpicker"
try this... if want make select visible uncomment javascript 2nd line
var selectasd = document.getelementbyid( 'select-asd' ); selectasd.style.display = 'none';
<div id="dialog"> <label id="">hi</label> <input type="text" id="input-name" /> <select id="select-asd" class="selectpicker" name="name"></select> </div>
Comments
Post a Comment