I have a form where I have a dropdown box with values of yes(default selected) and no. What I want to do is if a user selects ‘yes’, then show an input box. ff they select ‘no’, then show a textarea to allow them to enter content. How can I do this?
@jrthor2authorMar 15.2007 — #ok, just by looking at the code, I'm not sure this is exaclty what I want. My form elements are in a table, so when I select 'yes', I want to to show an input box, if I select 'no' I want to show a textarea (not an input box).
Also, my for is in a table with 2 columns, so I want to show a particular row if they select yes (which has a label and an input box), or show a row with a textarea that spans 2 columns.).
Also, when the page loads up, I don't want the input box or textarea to show at all.