onclick="func()" or .click()?
<p>I was wondering which one of the above methods is preferred or is the general guideline that you use $(elem).click() for simple things and &lt; a onclick="func(1, 2, 3, 4);" > when you need to pass parameters to the script when the element is clicked? I've been trying to only use $(elem).click() to keep the code clean and simple, but when you have to pass more than one parameter it gets tricky and function call on onclick="" seems like a better solution.</p>
