Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Show a hidden text field

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
If I have a select drop down list and a hidden text field. I want the hidden field to show as a text field when I select option2 in the select box, for example:
<form name="form1">
<select name ="select1">
<option value="1" selected> option1
<option value="2"> option2
<option value="3"> option3
</select>
<input type ="hidden" name="input1">
</form>
Can someone show me how to do it?
 
Charlie Sturman
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Charlie,
Thank you for your help. Your code works very well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic