function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YashYash 

On click of radio button , want to disabled/hide the VF component.

    Hi,

I want to disable or hide 'apex:SelectList' on click of radio button.

Can any body have the solution for this?


Thank you,

Yash
Ron HessRon Hess
need more info, do you have a controller?

if so, you can use a property in the controller to specify when the select list is rendered or not

the attribute to look into is rendered="{!mycontrollerprop}"

when this property is false, the select list can be made to not render.

the action of the radio button will then be to set the property, and re-render the select list.
hisrinuhisrinu
Hi,

Using java script you can do it.
Using that DIV tag you can display it or you can hide it.