disabled Select option < 10
Hi !
- <script type="text/javascript">jQuery(function($) {
- var sel = $("#jform_group_ids");
- sel.children('option[value="1"]').attr('disabled','disabled');
- sel.children('option[value="2"]').attr('disabled','disabled');
- sel.children('option[value="3"]').attr('disabled','disabled');
- sel.children('option[value="8"]').attr('disabled','disabled');
- sel.children('option[value="9"]').attr('disabled','disabled');
- });
- </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