I'm always for separating thing. Maybe, this would be nice: Function my_f(arg1,arg2,arg3) { //code }
$("...").click().f_call("my_f",{arg1: "arg1",arg2: "arg2",arg3: "arg3"}); or similar. Maybe, plug in mechanism can be extended to do this stuff. John, for us who prefer $(...).bind("click",f(){}); over $(...).click(); how to to rewrite: $(...).onclick().toggle().end();