SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
if (typeof($("#myButton").click) != "function") { $("#myButton").click(onButtonClicked); }