You need to sign in to do that
Don't have an account?
Prema -
Why onclick doesnt work in my vf page for Select options
<apex:page controller="CheckEmailwithContact" > <apex:form > <apex:pageBlock title="Select Options as per your choice" > <apex:selectRadio value="{!selectedCheckbox}" onclick="!getCons2(this.value)" immediate="true"> <apex:selectOptions value="{!items}"/> </apex:selectRadio><p/> <!--<apex:commandButton value="Click Here" action="{!getCons2}"/>--> </apex:pageBlock> </apex:form> <apex:pageblock > <apex:pageBlockTable value="{!conlists}" var="l" id="Table"> <apex:column headerValue="First Name" value="{!l.FirstName}"/> <apex:column headerValue="Last Name" value="{!l.LastName}"/> <apex:column headerValue="Email" value="{!l.Email}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
I guess you are going to call an apex method in onClick, If so try something like below. in controller you can access the 'selectedCheckbox' value directly
regards
Sampath
Could you please post whole code of vf page?
Thanks