disable the click event in jquery in variable in not set code example Example: jquery clear click event $( "#foo" ).unbind("click");