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