What would be the best way to reset the selected item to default? I\'m using Select2 library and when using a normal button type=\"reset\", the value i
type=\"reset\"
The best way of doing it is:
$('#e1.select2-offscreen').empty(); //#e1 : select 2 ID $('#e1').append(new Option()); // to add the placeholder and the allow clear