<!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&oacute; 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.&nbsp; If that number is
bigger than X, will remove the div.<br>
  <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; var x=4; // simulating<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; level=parseFloat($this.attr('level'));<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $('.qualif').each(function() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ($(this).attr('level')&gt;x)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $(this).remove();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; });<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&oacute;<br>
  <br>
</blockquote>
</body>
</html>