Topic awaiting preservation: Drop-down form field - select - new field appears |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: |
posted 07-23-2003 05:43
Hi, |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 07-23-2003 14:12 |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-23-2003 14:38
Hi there code: function checkOption() {
code: <select name="dropDownMenu" onchange="checkOption();">
|
Maniac (V) Inmate From: under the bed |
posted 07-23-2003 18:04 |
Obsessive-Compulsive (I) Inmate From: |
posted 07-24-2003 05:12
THANKS SO MUCH. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-24-2003 05:20
Try the line |
Obsessive-Compulsive (I) Inmate From: |
posted 07-24-2003 07:26
THANKS 'Slime'. |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-24-2003 09:37
Sure, that's possible as well - just put this line of CSS into the <head> area: code: <style type="text/css">
|
Obsessive-Compulsive (I) Inmate From: |
posted 07-24-2003 10:34
Thanks once again. Works perfectly. |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-24-2003 12:25
No worries - it's good to see that the code is of use to you (and maybe even some others in the long run ). code: onfocus="this.value='';"
|
Obsessive-Compulsive (I) Inmate From: |
posted 07-25-2003 03:14
Once again, |
Obsessive-Compulsive (I) Inmate From: |
posted 07-29-2003 08:09
Hi all, |
Bipolar (III) Inmate From: Berlin (almost) |
posted 07-29-2003 15:45
You should be able to this the same way as you are showing/hiding the input fields - try enclosing the text in the cell with another <div>, but use a different ID this time. After adding this new ID to your CSS declarations ("display: none;" again) you can expand the JavaScript to show and hide both <div>s by repeating the lines you have for the if and else conditions. Just replace "additionalFields" with the new ID: code: if (document.forms[0].dropDownMenu.value==4) {
|
Obsessive-Compulsive (I) Inmate From: |
posted 07-30-2003 12:11
THANKS very much!! |