function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SF OperatorSF Operator 

Can't get value of selectList.

It always stay on Null.

this is my code:
Controller:

 public String selectedReason {get; set;}

VF:

<apex:actionSupport event="onchange" rerender="OptionReason"/>
        <apex:outputLabel value="{!$ObjectType.Case.fields.Reason.Label}"/>           
        <apex:selectList id="OptionReason" value="{!selectedReason}" multiselect="false" size="1">
            <apex:selectOptions value="{!reasonOptions}"/>
        </apex:selectList>

RituSharmaRituSharma
Share your apex code as well where you are trying to access the value of selectedReason.