On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
This just isn't exactly intuitive and can be confusing to people who'd expect a valid CSS selector rule to work in jQuery.
Except that, while the selectors are syntactically valid, you can't have duplicate IDs on the same page, so you're basically at the mercy of how the browser decides to handle this situation. As has been said before, scripting on top of an invalid DOM is asking for trouble. If you cannot avoid doing this (i.e. the HTML is generated by a CMS that you have no control over), then $("[EMAIL PROTECTED]'bam']").append(" -- pink"); is probably the best workaround. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com