Possible Duplicate:
jquery .is(“:visible”) not working in Chrome
I am trying to get all of the visible items in an array. It's working fine in Firefox but not Chrome.
Here's my code:
$.each (t.config.promoInput, function (i, v) {
    var size = 0;
    $.each ($(v).find('option'), function (i, v) {
        $(v).show() // Show all options in <tt>$(v)</tt>.
            .not(':first-child') // Don't hide <tt>(All)</tt>.
            .not(':Contains("' + t.config.searchSpanInput.val() + '")') // Don't hide options that match the searchCriteria.
            .hide(); // Hide everthing that doesn't match or isn't (All).
        if ($(v).is(":visible")) {
            size++;
        }
    });
});
In Firefox size increments, whereas Chrome size stays equal to 0.
EDIT: :Contains is my own addition to the jQuery library. It is a case-insensitive version of :contains.
 
     
     
    