how to trigger clock event after button is pressed code example Example: set onclick jquery $(elem).click(myFunc());