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