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\"
You can also reset select2 value using
$(function() { $('#d').select2('data', null) })
alternately you can pass 'allowClear': true when calling select2 and it will have an X button to reset its value.
'allowClear': true