Hi,


I was just wondering if there is any better way to accomplish that.

Some divs has 'level' attribute, with a number.  If that number is bigger than X, will remove the div.

                var x=4; // simulating
                level=parseFloat($this.attr('level'));
                $('.qualif').each(function() {
                    if ($(this).attr('level')>x)
                        $(this).remove();
                });

I don't know if we can set a filter in $('') to look at a custom attribute, should be simpler than


Feijó

Reply via email to