<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000066">
Damm! Wrong group, this is for jquery folks<br>
<br>
sorry<br>
<br>
Feijó escreveu:
<blockquote cite="mid:47A06666.5050807@legendas.feijo.info" type="cite">Hi,<br>
<br>
<br>
I was just wondering if there is any better way to accomplish that.<br>
<br>
Some divs has 'level' attribute, with a number. If that number is
bigger than X, will remove the div.<br>
<br>
var x=4; // simulating<br>
level=parseFloat($this.attr('level'));<br>
$('.qualif').each(function() {<br>
if ($(this).attr('level')>x)<br>
$(this).remove();<br>
});<br>
<br>
I don't know if we can set a filter in $('') to look at a custom
attribute, should be simpler than<br>
<br>
<br>
Feijó<br>
<br>
</blockquote>
</body>
</html>