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
SamirKhanSamirKhan 

make inputfield active on click of radio button

I have one radio button and one inputfield..I am trying to achieve something like.if i click on the radio button , the input field should get active and user should be able to enter the value..If the radio button is not selected ..the field should be availabe but it should be disabled.

I have written something like below..but its not working

 
<input onclick ="document.getelementbyid('datepurchased').disabled =true;" type = "radio" name = "abc"></input>   
<apex:inputField id="datepurchased" value="{!lstRMA[0].Date_Purchased__c}"/>

 
NagaNaga (Salesforce Developers) 
Hi Samir,

Please check if the below Jquery code will work for you

User-added image
Best Regards
Naga Kiran
SamirKhanSamirKhan
Hi naga,

What is t.val in above snipshot??