Question: Basically what I want to do is have 1 dropdown list (with all options) and when I click a radio button it only displays specific options from the dropdown list.

For example, I have 2 radio buttons and 6 options:

```

radio-button1, radio-button2

option1,
option2,
option3,
option4,
option5,
option6,

```

If I press `radio-button1`, it will only display option1, option2, option3 in the dropdown list. If I press `radio-button2`, it'll display the other 3.

Currently I just use the show/hide functions and 2 separate dropdown list to do this.. but I was wondering how to do it within 1 dropdown list. Any advice would be appreciated cheers.

Answer: 
```
<!DOCTYPE html>
<html>
<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript">
        function dropHider(type) {
            $("select#drop").find("option").each(function() {
                if ($(this).attr("rel") == type) {
                    $(this).removeAttr("disabled");
                } else {
                    $(this).attr("disabled","disabled");
                }
            });
        }
    </script>
</head>
<body>
    <input type="radio" name="type" value="Food" onClick="dropHider(this.value)"> Food<br />
    <input type="radio" name="type" value="Drink" onClick="dropHider(this.value)"> Drink<br />
    <select id="drop">
        <option rel="Food" value="Pizza" id="1">Pizza</option>
        <option rel="Food" value="Burger" id="2">Burger</option>
        <option rel="Food" value="Fish" id="3">Fish</option>
        <option rel="Drink" value="Coke" id="4">Coke</option>
        <option rel="Drink" value="Lemonade" id="5">Lemonade</option>
        <option rel="Drink" value="Fanta" id="6">Fanta</option>
    </select>
</body>
</html>

```

This should work for you; hope it helps
You just have to assign an unique ID to each option, and use show/hide according to what you want to do when you select radio-buttons. All options can be in the same list, and you show/hide list elements using its ID.