Just a guess...does $('span[className^="err"]') work the way you expected? The Javascript property for class is className since "class" is a reserved word.
- [jQuery] hyphen breaking "starts with" selector Geuis
- [jQuery] Re: hyphen breaking "starts with" sel... Dave Methvin