hi,
i'm trying to do enable and disable on two drop down lists,
where initially combo1 is enabled and combo2 is disabled
once selection has been made in combo1, combo2 is enabled..
is there any php/html/javascript solutions for this?
enable and disable drop down list in php/javascript
Moderator: General Moderators
untested....
Code: Select all
<script language="e;JavaScript"e;>
function enableformObj(formObjName){
document.getElementById(formObjName).disabled = false;
}
</script>
<select name="e;list1"e; onBlur="e;enableformObj('list2');"e;>
<option value="e;1"e;>1</option>
<option value="e;2"e;>2</option>
<option value="e;3"e;>3</option>
</select><select name="e;list2"e; id="e;list2"e; disabled>
<option value="e;a"e;>a</option>
<option value="e;b"e;>b</option>
<option value="e;c"e;>c</option>
</select>- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
There is a tutorial for this at
viewtopic.php?t=29084
If you have any comments on the tutorial let me know (possibly private message) as so far no feedback has been received.
viewtopic.php?t=29084
If you have any comments on the tutorial let me know (possibly private message) as so far no feedback has been received.