thanks but that it isn't working in this scenario

for:
<span x:foo="bar">Lorem</span>

the expression:
$('span').filter(function(){return $(this).attr("x:foo");})
returns the span element

but neither:
$('[x:foo]')
no:
$('[x\\:foo]')
find it

any clue?

Brian J. Cardiff
bcardiff(?)gmail.com
.


On Fri, Nov 7, 2008 at 6:11 PM, MorningZ <[EMAIL PROTECTED]> wrote:

>
>
> http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
>
>
>
>
>
> On Nov 7, 2:06 pm, "Brian J. Cardiff" <[EMAIL PROTECTED]> wrote:
> > Is there a way to specify an AttributeFilter for attributes within a
> certain
> > namespace? I try some alternatives but it seems that is not implemented.
> >
> > For example:
> > <span x:foo="bar">Lorem</span>
> >
> > I would need that something like $('[x:foo]') find the span element.
> >
> > Thanks.
> > Brian J. Cardiff
> > bcardiff(?)gmail.com
> > .
>

Reply via email to