|
-
Apr 11th, 2001, 12:40 AM
#1
Thread Starter
Member
I have a multiple select list box that is enabled and disabled by a Checkbox, what I want to be able to do is clear out an pre-selected items after the box has been disabled. At the minute when I re-enable the box the prevoiusly selected items are still showing as being selected.
The code I'm trying to use is.
<input type="checkbox" name="chk1" value="chk1" onClick="if (chk1.checked) document.frmMethods.EG.disabled=true; else document.frmMethods.EG.disabled=false; ">
<select name="EG" size="4" multiple onChange="if (EG.disabled) EG.selectedIndex=0;">
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|