[jQuery] Is this the best way?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000066">
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ó
</body>
</html>