$("#qSearchBut").click(function () { $(this).quickSearch() });
.mini.moke wrote:
Hi there, I'm pretty new to JQuery. I have a couple of elements that need to call the same function so my code looks like this: $("#qSearchBut").click(quickSearch()); Pretty simple I thought. But this call executes the quickSearch() function on page load. What fundamental thing am I overlooking? Thanks in advanceAmanda