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ó |
- [jQuery] Is this the best way? Feijó
- [jQuery] Re: Is this the best way? Joel Birch
- [jQuery] Re: Is this the best way? cabbiepete
- [jQuery] Re: Is this the best way? Feijó
- [jQuery] Re: Is this the best way? Joel Birch
- [jQuery] Re: Is this the best way? Danny
- [jQuery] Re: Is this the best way? the_woodsman