> > You may use a period in an id still being valid XHTML, but in this
> > case you cannot use the id as a (CSS) selector, because the
> > period is a class selector.
> I'm not convinced it's not a bug in jQuery because it doesn't
> make sense to specify a class on an Id. I'm not going to make
> a fuss about it unless you also think it needs to be made a
> fuss about.
There is a situation where it can be useful: If you want to select the
element with a certain ID, only if it also has a certain class.
Assuming that the ID 'foo' exists, then $('#foo.bar') returns a jQuery
object with a single element if the element has the class 'bar', but returns
an *empty* jQuery object if the element does not have that class.
-Mike
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/