disabled Select option < 10

disabled Select option < 10

Hi !

  1. <script type="text/javascript">jQuery(function($) {
  2.   var sel = $("#jform_group_ids");
  3.   sel.children('option[value="1"]').attr('disabled','disabled');
  4.   sel.children('option[value="2"]').attr('disabled','disabled');
  5.   sel.children('option[value="3"]').attr('disabled','disabled');
  6.   sel.children('option[value="8"]').attr('disabled','disabled');
  7.   sel.children('option[value="9"]').attr('disabled','disabled');
  8. });
  9. </script>
how can I do the same thing in a cleaner way ?
disabling all options with a value < 10 

is there any way to hide them totally ?


thanks for helping