Using jQuery I want to bind an existing function to a button. I\'ve been through the documentation and have found the bind method but the examples on the jQuery
bind
Yes you can bind methods that written somewhere else, but you should ignore the parentheses :
function fHardCodedFunction(){ //Do stuff } function fBindFunctionToElement(){ $("#MyButton").bind("click", fHardCodedFunction); }