how to set click event on class in jquery code example Example: set onclick jquery $(elem).click(myFunc());