showing results for - "jquery select clear options"
Laura
03 Aug 2020
1$('select2element').val(null).trigger("change")
2
Alia
19 May 2018
1$('#mySelect')
2    .find('option')
3    .remove()
4    .end()
5    .append('<option value="whatever">text</option>')
6    .val('whatever')
7;
8
queries leading to this page
jquery clear value selected in selectjquery select clear all itemsjquery clear select selectionreset a select box jqueryclear select option in jqueryjquery clear dropdown selectionjquery clear drop down list optionsjquery select2 on clear eventclear option on jqueryhow to clear select2 dropdown in jqueryjquery select2 clear valueclear input select jqueryclear all options from select jqueryempty select2 jqueryclearqueue jqueryselect2 clear selection jqueryclear options from selectclear selected value select jqueryonclick clear select2 field jqueryhow to clear dropdown options in jqueryselect clear jqueryjquery clear select and add options 5djquery select input clear optionsjquery reset select tagclear dropdown option in jqueryjquery options clearhow to clear or reset the select element in jqueryajax set clear a select clear select2 dropdown jqueryjquery clear all dropdown optionsreset select with jqueryjquery select2 clearjquery clear input and selectselect2 clear by jqueryclear select dropdown jqueryclear select box jqueryclear all select fields jqueryhow to reset multiple select box in jqueryhow to reset select option in jqueryresetting all select2 jquery select elementsjquery clear select dropdownjquery clear select optionclear combobox jqueryjquery clear select2 valuehow to clear select2 in all selcts in tha page in jqueryclear select box value jqueryclear multiple select jqueryjquery clear form selectjquery clear select option valuehow to reset select2 dropdown in jqueryreset select2 field jqueryclear selected option jquery select2jquery reset a selectclear select field jqueryselectbox clear jqueryhow to clear a select and add new itens in jqueryclear selected option jqueryselect2 to clearn and rest by jquyerjquery clear selecet2clear select2 value in jqueryhow to clean selected option jqueryjquery input select clearselect2 clear all options jqueryhow to remove select2 option in jqueryreset select2 option jqueryjquery clear select and setclean method in jquery select 2how to clear select option in jqueryjquery select option value clearclear selected item jqueryselect options reset in jqueryjquery clear select options except valuejquery select2 remove all optionsjavascript select 2 clearclear select2 onchange jqueryreset select2 jqueryjquery select multiple clear selectionjquery empty select optionshow to remove all option in select2 using jqueryclear select2 options jqueryonclick clear select2 value jquerydelete option select2 jqueryreset select field jqueryclear select jqueryjquery select clear datajquery clear select optionsclear select2 ajaxhow to clear select2 dropdown with ajax in jquery and selected some valuejquery select remove all optionsjquery select2 clear eventjquery select clearhow to reset a select box in jqueryjquery select clear selectedjquery select2 clear selectionjquery clear selectedclear select2 jqueryclear select options jqueryjquery clear options from selectreset select2 dropdown jqueryhow to reset select option in jquery 5cremove all option select2 jqueryhow to clear a select jqueryhow to clear select jqueryjquery reset a select optionjquery clear and add options to selectajax set clear a select optionjquery reset select to emptyjquery multi select clear optionsclear all options from select jquery excepted selectedjquery clear dropdown list optionsjquery select clear adataclear select option jqueryhow to clear select list using jqueryhow to clear select dropdown in jqueryclear all options of select jqueryjquery clear selectionjq clear select inputhow to clear a select in jqueryhow to clear the multiple select2 values using jqueryclear option select jqueryhow to clear select2 value in jqueryjquery reset select optionsnselect2 dropdown clear in jqueryclear select value from jqjquery clear selected optionsclear options from select jqueryjquery reset selectclear unselected option jqueryclear the select box in jqueryjquery clear optionsreset select box jqueryclear selected value select2 jqueryjquery clear child select optionsjquery multiple easy select clearjquery select clear selectionclear select option value jqueryjquery clear multiselect selectionclear a select box jqueryhtml select clear jqueryjquery select2 clearing out value does not clear textjquery clear all select optionsclear value select2 jqueryselect option how to reset with jqueryclearing select option jquery restjquery reset multiple select optionselect clear options jqueryjquery select clear selected optionjquery reset select optionhow to reset select2 option in jqueryjquery clear select options except firsthow to empty all options in select jqueryreset select2 value jqueryjquery reset option selectjquery chosen clear selectionhow to clear selected use jqueryjquery reset select2reset multiple select jqueryjquery clear selecthow to clear select2 dropdown in jquery and selected some valueremove all select option jquery on select2clear select with jqueryjquery clear out select fieldhow to clear select field in jqueryreset a select option jqueryselect options clear jqueryjquery to clear multiple select tagshow to clear select2 in jqueryclear select2 in jqueryjquery reset select optionschosen select clear optionson clear select tag jqueryhow to cleare select by jqueryselect2 dropdown clear value in jqueryjquery remove option from select2jquery select2 reset selected valueclear chosen select jqueryjavascript select clear optionsjquery select clear selectreset select2 in jqueryclear option from select jqueryclear select2 option jqueryclear un selected option jqueryhow to reset selected option select2 in jqueryjquery clear selected optionhow to clear select option value in jqueryjquery clear out a select fieldhow to clear option in select jqueryjquery clear select list itemsjquery select clear optionsjquery clear select indexclear option in select jqueryclear select in jquerychosen jquery clear selectionjquery select clear itemsjquery clear select elementhow to clear select2 dropdownlist using jqueryreset select jqueryclear dropdown options in jqueryempty select options jqueryjquery clear value of select fieldjquery select clear options