I had to do something similar today, and I did something like

function myfunction(f){
     $(element).click(function(){eval(f+"();");});
}
that was off the cuff, but that should work.
-- 
View this message in context: 
http://www.nabble.com/passing-functions-tf2805241.html#a7827322
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to