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\"
I'd try something like this:
$(function(){ $("#searchclear").click(function(){ $("#d").select2('val', 'All'); }); });