jquery clear event code example
Example 1: jquery clear click event
$( "#foo" ).unbind("click");
Example 2: jquery remove keypress event
$('#foo').unbind("keypress");
Example 3: how to remove event listener in jquery
// adding an event listener using jQuery
$('h1').click(()=>{
console.log('clicked')
})
// unbinding event listener
$('h1').unbind()
Example 4: jquery clear chozen
$(".chosen-select").val('').trigger("chosen:updated");