jquery set element onclick function code example Example: set onclick jquery $(elem).click(myFunc());