You need to sign in to do that
Don't have an account?

Unable to get value of SelectList
I can't get the value of my SelectedList, I can show the values but I can't get the picked one.
SelectOptions is working well.
<apex:actionSupport event="onchange" rerender="OptionReason"/>
<apex:selectList id="OptionReason" value="{!selectedReason}" multiselect="false" size="1">
<apex:selectOptions value="{!reasonOptions}"/>
</apex:selectList>
public string selectedReason{get;set;}