You need to sign in to do that
Don't have an account?
sonam
javascript call onChange event of radio button
Hi!
I need to define a javascript method on the event
like onChange='' some javascript code" in the following code bt its giving an error: Unsupported attribute onchange in <apex:actionsupport>
<apex:selectRadio value="{!Value}">
<apex:selectOptions value="{!items}"/>
<apex:actionsupport event="onchange" rerender="someBlock" status="waitStatus" onChange='' some javascript code" />
</apex:selectRadio>
Thanks in advance.
I need to define a javascript method on the event
like onChange='' some javascript code" in the following code bt its giving an error: Unsupported attribute onchange in <apex:actionsupport>
<apex:selectRadio value="{!Value}">
<apex:selectOptions value="{!items}"/>
<apex:actionsupport event="onchange" rerender="someBlock" status="waitStatus" onChange='' some javascript code" />
</apex:selectRadio>
Thanks in advance.
Actually there is no attribute named "onchange" in actionsupport,
If you want to call a javascript function on change event of radio button then you can call it directly without using actionSupport:
eg:
<apex:selectRadio value="{!Value}" onChange="some javascript code">
<apex:selectOptions value="{!items}"/>
</apex:selectRadio>
If my answer solves your problem, then please mark its as solution.