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); alert(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>
--------------------
class
public class selectionController {
public String selectedValue{get; set;}
}
Here i want to rendered outputText when the selectedValue is 'Two'.
Hi ,
Use action support for this in my below example the AccountSource is a picklist so it renders a Selectbox as you need please mark solved if it solves your problem