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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -