click function in jqury not acceptong functipon code example Example: set onclick jquery $(elem).click(myFunc());