Rafael Soares wrote:
I'm using a [attribute*='value'] selector, and the only problem is that I need it to be case insensitive.

I don't think there is any simple way, but a filter function should do what you need.

    http://docs.jquery.com/Traversing/filter#fn

I might have this off a bit, but something like this, I think would do it:

    var target = myValue.toLowerCase()
    $("#container *").filter(function(index) {
        var attr = $(this).attr(myAttribute);
        return !attr || attr.toLowerCase().indexOf(target) == -1;
    }).doSomething();

Cheers,

  -- Scott

Reply via email to