Skip navigation
Armek Mareki
Currently Being Moderated

radio onClick cfselect enable= true

Sep 15, 2010 12:56 PM

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>

 
Replies
  • Currently Being Moderated
    Mar 12, 2011 7:44 AM   in reply to Armek Mareki

    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" />

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points