You can take advantage of event delegation by binding click event to the table tag and checking with "if" statement if the clicked cell is not the one that has a checkbox.
For event delegation see: http://www.learningjquery.com/2008/03/working-with-events-part-1 For row checking and stuff see: http://www.askthecssguy.com/2008/10/josh_asks_the_css_guy_about_ro.html For other jQuery howto's see: http://jquery-howto.blogspot.com On Wed, Feb 4, 2009 at 3:28 PM, jq noob <sammil...@alliancecom.net> wrote: > > I want to do a onclick event for anywhere in a table row except for a > specific cell. In that cell I want to be able to click a checkbox. I > have any # of rows and 12 columns in the table. I usually use a > something like this > > <tr onclick="window.location='<%=site_location%>?noCache=<%=randomnum() > %>&itemID=<%=itemID%>';" > onmouseover="this.style.backgroundColor='white'; > this.style.cursor='pointer';" > onmouseout="this.style.backgroundColor='<%=strColor%>'; > this.style.cursor='default';" > style="background-color:<%=strColor%>;"> > > In this instance I also need to allow the user to check on a bunch of > rows and submit to another page with the records selected. I also > would like to still keep the row click because this is used everywhere > else. > > I presume that someone could tell me how to handle this easily with > JQuery > > Thanks in advance.