jquery add onclick

JavaScript
$(elem).click(myFunc());
Source

Also in JavaScript: