Toni Michel Caubet
Toni Michel Caubet

Reputation: 20173

firebug empty error using .filter()

Hi there i am tying to filter all the ul li items that contain an span with a class and a desired .text() value to be hidden this way:

/* string is something like 'somefilename.png'*/
    $('.qq-upload-file li').filter(function() {
        return $(this).find('.qq-upload-file').text() == string;
    }).fadeout();

But firebug logs this error on execution:

$(
[Parar en este error]   

$('.qq-upload-file li').filter(function() {

What am I missing here?

Upvotes: 0

Views: 79

Answers (1)

WojtekT
WojtekT

Reputation: 4775

Replace .fadeout() with .fadeOut() - case is important.

Upvotes: 2

Related Questions