Salesforce Visualforce Page

Salesforce

How to display the selected value from apex:selectOptions in Salesforce Visualforce page?

Sample Code: Visualforce Page: <apex:page controller="SampleVFPageController"> <apex:form> <apex:actionFunction name="onAccountChange" action="{!fetchAccount}" reRender="selAccName"/> <apex:pageBlock> <apex:pageBlockSection> <apex:selectList value='{!selectedAccount}' label="Select an Accont" onchange="onAccountChange()"> <apex:selectOptions value="{!listOptions}" /> </apex:selectList> </apex:pageBlockSection> <apex:pageBlockSection> <apex:outputPanel id="selAccName"> Selected Account name ....