Can hover and click functions be combined into one, so for example:
click:
$(\'#target\').click(function() { // common operation });
var hoverAndClick = function() { // Your actions here } ; $("#target").hover( hoverAndClick ).click( hoverAndClick ) ;
$("#target").hover(function(){ $(this).click(); }).click(function(){ //common function });