Click here to Skip to main content
14,970,948 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Based on the dropdown list selected text, i want to change the display mode of a textbox. If the selected text is "New", change the textbox display mode as "display:block" , else "display:none".

Please give me the javascript code.

Thanks in advance.
Posted
Updated 4-Jul-10 20:12pm
v2

1 solution

Have a look at this answer:
http://www.codeproject.com/Answers/90154/how-to-hide-div-using-java-script.aspx[^]

Implement something similar, just use dropdown 'onchage' event in your code instead of treenode click.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900