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

Help Me

<apex:page controller="selectionController" >
<apex:form >
<apex:actionFunction name="rerenderText" reRender="ot" >
<apex:param value="" assignTo="{!selectedValue}" name="param"/>
<apex:selectList id="sL"  size="1" onchange="rerenderText(this.value)">
<apex:selectOption itemLabel="1" itemValue="One"></apex:selectOption>
<apex:selectOption itemLabel="2" itemValue="Two"> </apex:selectOption>
<apex:selectOption itemLabel="3" itemValue="Three"> </apex:selectOption>
<apex:outputText value="Success" rendered="{!selectedValue=='Two'}" id="ot"></apex:outputText>




public class selectionController {
public String selectedValue{get; set;}



Here i want to rendered outputText when the selectedValue is 'Two'

Niket SFNiket SF

You need to use the OnSelect event and use the Action Support. It will solve your problem