You need to sign in to do that
Don't have an account?
Help Me
<apex:page controller="selectionController" >
<apex:form >
<apex:actionFunction name="rerenderText" reRender="ot" >
<apex:param value="" assignTo="{!selectedValue}" name="param"/>
</apex:actionFunction>
<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:selectList><br/>
<apex:outputText value="Success" rendered="{!selectedValue=='Two'}" id="ot"></apex:outputText>
</apex:form>
</apex:page>
----------------------------
public class selectionController {
public String selectedValue{get; set;}
}
Here i want to rendered outputText when the selectedValue is 'Two'
You need to use the OnSelect event and use the Action Support. It will solve your problem