This code works fine in FF, Opera, Safari... on IE7 I get nothing. Well, the image opens in a new browser window. I get no error messages, I get no Shadowbox.
I'm at a loss as to how to go about debugging this. As you can see, I've got as far as dropping an alert() in, to check that the IF statement is returning true. It is, and it's alerting a bunch of hrefs.
Why isn't it working in IE? How can I find out where it's going wrong?
Like I said, the IF returns true. I know this because the alert pops up and lists a bunch of elements that match the CSS selector.
What I want to know is if IE is having problems attaching the onclick events to those elements, or whether the onclick is firing but Shadowbox is having problems opening its window. But I don't know enough about Shadowbox's internal workings to know what I should be debugging.