$(\"#archive\").click(function(event){
/*do something*/
});
$(\'#archive2\').unbind(\'click\',event);
i have this click function that I unbind
You need to provide a handler to the function so you can bind/unbind from it. (Also allows you to bind/unbind specific events handlers within the same event:
var handler = function() {
alert('The quick brown fox jumps over the lazy dog.');
};
$('#foo').bind('click', handler);
$('#foo').unbind('click', handler);
(used from http://api.jquery.com/unbind/ )