My basic setup is this:
function overLink ( e ){
alert( e );
}
$(document).ready(function() {
$( "#id" ).mouseover( overLink( this ) );
});
However 'overLink' is being called on page load, not when '#id' is hovered. I read that this is because of () in my function declaration, but I can't remove this as I want to pass a selector to the function. Any ideas?
Thanks!