Keep in mind that there are characters allowed in classes that are not allowed in the CSS spec for selection of classes. In other words, if you include a paren or a bracket in a class, it can't be styled. Therefore, you can use it for script, without worrying that someone will accidently style over the class you're using. Just make sure to avoid putting spaces into class data that you're using, so it's not broken up into multiple classes.
- Brian > I don't think it will break jquery. but by adding code into a class > css will still treat each word as a class and apply that style, for > your example, it would invoke a class called some or a class called > data. > > On 11/1/06, John Resig <[EMAIL PROTECTED]> wrote: >> > of course the data option is easiest but will break validation >> > the class works too, but what if you define a css class called some or >> > even data? >> >> I don't follow. The "class" technique doesn't break existing >> addClass/removeClass functionality - everything works as you might >> expect. >> > > -- > â¿âââ - ××¢×§× ÊÇ¡Ç©È© á«áªá¦á¬ > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/