how to set onclick to tag a using jquery code example Example: set onclick jquery $(elem).click(myFunc());