how to define something on click jquery code example Example: set onclick jquery $(elem).click(myFunc());