how to set function onclick to a using jquery code example Example: set onclick jquery $(elem).click(myFunc());