[jQuery] Atribute selector with squared brackets
We got a ticket about how to select elements by an attribute with
brackets.
I replied with the common link to the FAQ and the reporter replied
that the example in the docs doesn't work.
I tried that myself, and indeed, that didn't work.
http://dev.jquery.com/ticket/3443
$('[name=foo[bar]]'); // Doesn't work
$('[name=foo\\[bar\\]]'); // Should work, but doesn't
$('[name="foo[bar]"]'); // Does work
Now... I think the last option is good enough. But we need to update
the docs.
Anything to add ?
Anyone volunteers to update the docs ?
Cheers
--
Ariel Flesler
http://flesler.blogspot.com/