how do you assign a click event the entire header of a dialog

how do you assign a click event the entire header of a dialog

I can get a click event on just the title using

$('#ui-dialog-title-divname').click(function(){

});

But can't figure out how to do the whole header