Exactly when does the exception happen? When you try to .attr('id');?
–
biziclopFeb 16 '12 at 7:06

You could try getting the elements with getElementById() [native JS] to see if you're breaking the language rules... i've never seen $ in id/name attributes, I'm not certain they're in the spec
–
nasty pastyFeb 16 '12 at 7:07