Javascript onChange Script To Make Form Area Appear or Disappear

In a website I am working on, I want to display/hide an area of a form according to the value selected from a scroll-down by the user.
Who is Participating?
Michel PlungjanIT ExpertCommented:
Michel PlungjanIT ExpertCommented:
<select onChange="var val=this.options[this.selectedIndex].value;
<option value="">Please select</option>
<option value="A">A</option>
<option value="other">Other</option>
<div id="other" style="display:none"><input type="text" name="otherValue" value=""></div>
gianchi66Author Commented:
I cracked up.

Isn't that beautiful? I even forgot I had asked that question already...

Do you have kids? That's how you loose your memory.
Michel PlungjanIT ExpertCommented:
Ohhh, I thought it was the pints...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.