Q:

jquery find divs with id higher than some number

is there any way to find it?
for example:
var number=5;
$("#"+>number).remove();

but I dont know how do something like it and if is it posibble :)
thanks

A:

$('div').filter(function() {
  return parseInt( this.id, 10) > 5;
}).remove();

If id contains only number.
But you should avoid only numeric id.
For example:
<div id="myid-5"></div>
<div id="myid-6"></div>

And modify above code as:
$('div').filter(function() {
   return parseInt( this.id.replace('myid-',''), 10) > 5;
}).remove();

