add onclick event to div using jquery code example Example: set onclick jquery $(elem).click(myFunc());