I defined a simple function and attached a "click" handler to a link using .bind().
The function is not running on click - rather, it is running on document ready. Not sure why this is happening.
I am using jQuery 1.3.2.
HTML
<a href="#">click me</a>
jQuery
$(document).ready(function(){
leftTurn = function($message){
alert ($message);
};
$('a').bind('click', leftTurn('hello'));
});
The code is also here in a JSFiddle