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

radio onClick cfselect enable= true

Community Beginner ,
Sep 15, 2010 Sep 15, 2010

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>

1.6K
Translate
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
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" />

Translate
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