• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

radio onClick cfselect enable= true

Community Beginner ,
Sep 15, 2010 Sep 15, 2010

Copy link to clipboard

Copied

Can not get onClick syntax to work correctly. Help is much appreciated.

<cfform action="nexpage.cfm" target="_self" method="post" enctype="application/x-www-form-urlencoded" name="frm1"  format="flash"  width="900" height="700" skin="haloblue">

<cfformgroup type="horizontal"> 
   <cfformitem type="text" width="300" enabled="yes">How did you learn of our online process?</cfformitem>
  

   <cfinput type="radio" name="lead" label="Newspaper"  value="1" onClick="document.frm1.newspaper.disabled=false" />

       

      <cfselect disabled="true" visible="yes" name="newspaper" id="newspaper" multiple="no" width="250" >
               <option value="">Select one</option>
               <option value="1">option 1</option>
               <option value="2">option 2</option>
               <option value="3">option 3</option>
    </cfselect>
</cfformgroup>

<cfformgroup type="horizontal"> 
   <cfformitem type="spacer" width="300" enabled="yes" />
  

   <cfinput type="radio" name="lead" label="Job Center"  value="2" onClick="document.frm1.JCenter.disabled=false" />

   

     <cfselect disabled="true" visible="yes" name="JCenter" id="JCenter" multiple="no" width="250" >
          <option value="">Select one</option>
          <option value="1">option 1</option>
          <option value="2">option 2</option>
          <option value="3">option3</option>
    </cfselect>

  
</cfformgroup>

</cfform>

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 12, 2011 Mar 12, 2011

Copy link to clipboard

Copied

LATEST

If disabled=false fails, then use

<cfinput type="radio" name="lead" label="Newspaper"  value="1" onClick="document.frm1.newspaper.enabled=true" />
<cfinput type="radio" name="lead" label="Job Center"  value="2" onClick="document.frm1.JCenter.enabled=true" />

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation