IE < 8 doesn't support node.hasAttribute method. Use $(node).prop instea...

...d