Category: developers journal

jQuery [@attr] selector updates

Author: seven May 21, 2009

Yes, it is that time of year when you decided it's time to update project wide your favorite javascript framework - jQuery. Many versions have passed since your 1.2.3 version and you became pretty much outdated. You download it, put it where it belongs, cross your fingers, moment of silence.... bam - nothing works any more.

If you had similar experience while upgrading from jQuery 1.2.x to 1.3.2, don't fear. It's most likely due to the fact that in jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2 but we just didn't care). Just do massive search for "[@" in your files, and simply remove the '@' symbol from your selectors in order to make them work again.

Author
seven
CEO/CTO at Nivas®
Neven Jacmenović has been passionately involved with computers since late 80s, the age of Atari and Commodore Amiga. As one of internet industry pioneers in Croatia, since 90s, he has been involved in making of many award winning, innovative and successful online project. He is experienced full stack web developer, analyst and system engineer. In his spare time, Neven is transforming retro-futuristic passion into various golang, Adobe Flash and JavaScript/WebGL projects.

    One thought on “jQuery [@attr] selector updates”

  • Ahh, just solved one problem in one of the older scripts by removing only one character, now I feel amazingly relieved :)

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>