I want to render page block1 when x value is selected in dynamic picklist, render page block 2 when y value is selected in dynamic picklist in VF page. How to do it?
<apex:selectList value="{!selecteduser1}" multiselect="false" size="1">
<apex:selectOption itemValue="User" itemLabel="User" id="u1" />
<apex:selectOption itemValue="Queue" itemLabel="Queue" id="u2" />
</apex:selectList>
<apex:pageBlock id="pb1" >
</apex:pageBlock>
<apex:pageBlock id="pb2" >
</apex:pageBlock>