Nick,

As you will see, I put an extra alert in the code, on the very first line.

This meant that I could see that at the very least, the function was getting called. From there, given that there is another alert directly after the offending line, it narrowed down what was happening. Then, on looking at the line, I thought about what could be causing the problem.

Then I tried this:

Code:
alert($(obj));
I tried this (my jQuery isn't that hot, and I wondered if motil was trying to work magic) and when that didn't return anything, I knew that this was the culprit.

From there, it was a short step to do this:

Code:
alert($(sender));
And when that returned an HtmlElement, I altered the code as above.

I hope that little explanation helps.

Gary