DaveG wrote:
Just a heads-up, but I recall when I did this that I had to do some 'extra'
coding. I'm not sure if you have the same scenario, but I wanted the row to be
highlighted, and the checkbox toggled when either the checkbox was clicked or
the row was clicked. I had to accommodate for the fact that when the checbox is
clicked, the TR trigger also fires, effectively causing a double fire.
Yup. I had that too. That's why I check the
event.originalTarget.tagName, and only toggle if it's not an <input>.
Works find with that in there. Even if I had input text boxes elsewhere
in the row, I probably wouldn't want the checkbox to toggle, so any
<input> is OK to skip for me.
if(event.originalTarget.tagName != 'INPUT')
Cheers,
Howie