I have to pass the selected picklist value by user from apex form using `<select>` and `<options>` html tag to a standard controllers picklist field. 

I am unable to get the values from Page to controller. Please suggest how this can be done.

VF Page

```
<select class="form-control form-group">
    <option value="">--None--</option>
    <option value="">A</option>
    <option value="">B</option>
    <option value="">C</option>
</select>

<apex:actionFunction name="dfunction" action="{!receiveInput}">
    <apex:param id="dname" name="type" value=""/>
</apex:actionFunction>

<!--Some <button> with onCLick= myfoo() in vf page-->
//Javascript
myfoo(){
    var n3 = document.getElementById("type").value;
    dfunction(n3);
}

```

Controller

```
//Controller
public void receiveInput() {
    String input = Apexpages.currentPage().getParameters().get('type');
}

```

**EDIT1-**

`var n3 = document.getElementById("type").value;
 dfunction(n3);`
This seems to get the value of option properly but I am not able to get it in my controller.