Skip navigation
Currently Being Moderated

dynamic drop box with on change

Jul 13, 2012 1:14 PM

I have the drop box and check box on the same form.  The check box is initially hide.  It is only displayed when user selected type_id 2 from the drop box.  type_ID can be from (1, 2, 4...)

some this like below but don't know how to do on jasvasript.  Can anyone please help!!!

 

<select name="type_ID" id="type">

<option value="">[Select Type]</option>

<cfloop query="qryType">

<option value="#type_ID#">#qryStep.crw_step_description#</option>

</cfloop>

</select>

 

<cfif type_id eq 5>

Send Email<input type="checkbox" name="send" />

</cfif>

 

Thanks

 
Replies
  • Currently Being Moderated
    Jul 14, 2012 4:24 AM   in reply to newcf

    If you want to be a web programmer you have to javascript.  I learned  by buying the book "Teach Yourself Javascript in 24 Hours".  There are also free online tutorials.

     

    For your particular problem, a google search on "javascript show hide" will lead you to the answer.

     
    |
    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