how to create onclick button in jquery code example Example: set onclick jquery $(elem).click(myFunc());