How to generate a radio button or a checkbox depends on the selected value in dropdownlist

How to generate a radio button or a checkbox depends on the selected value in dropdownlist

for example, i have a dropdownlist
<select id="Type">
        <option>Single</option>
        <option>Mutiple</option>
    </select>

when i select Single, i want to generate 2 radio button. instead, generating 2 checkboxes if Mutiple was selected.
can anyone show me how to do it?