jquery - How to remove "Select" on the list -


how can put "select" placeholder in select option not on list of dropdown when click it? idea?

thanks!

<div class="form-group">     <label class="control-label" for="name">hours of operation:</label>     <div class="input-group">         <span class="input-group-addon"><i class="fa fa-clock-o"></i></span>         <select class="form-control" name="hours-of-operation" class="selectpicker">             <option>select</option>             <option value="business hours">business hours</option>             <option value="after business hours">after business hours</option>             <option value="24/7">24/7</option>         </select>     </div> </div> 

just set value="" , abort event handler if no value selected.

<select class="form-control" name="hours-of-operation" class="selectpicker">     <option value="">select</option>     <option value="business hours">business hours</option>     <option value="after business hours">after business hours</option>     <option value="24/7">24/7</option> </select> 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -