Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove empty option from bootstrap select javascript

var groupFilter = $('#groupFilter');
    groupFilter.selectpicker('val', '');
    groupFilter.find('option').remove();
    groupFilter.selectpicker("refresh");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #empty #option #bootstrap #select #javascript
ADD COMMENT
Topic
Name
8+7 =