how to clear select2 in all selcts in tha page in jquery code example
Example 1: jquery clear select 2
$('select2element').val(null).trigger("change")
Example 2: jquery select clear options
$('#mySelect')
.find('option')
.remove()
.end()
.append('<option value="whatever">text</option>')
.val('whatever')
;