Results 1 to 6 of 6
Jan 7, 2004, 14:49 #1
- Join Date
- Dec 2001
- Gouda, The Netherlands
- 0 Post(s)
- 0 Thread(s)
IE bug for disabling form controls?
I would like to implement a checkbox within a form that when checked will enable a certain dropdown list element. When the checkbox is unchecked, the element will become disabled (and grayed out).
I do this by using the following code from within the checkbox onchange-handler:
var obj = document.getElementById('id_dropdown'); var chk = document.getElementById('id_checkbox'); if (obj && chk) obj.disabled = !chk.checked;
This is very aggravating indeed...
Is this a known bug? If so, then is there a workaround I can use?
(Hint: I've tried doing a setTimeout for a delayed disable, but this does not help either).
Last edited by kgish; Jan 8, 2004 at 01:23. Reason: Fixed typosKiffin
Your average future-famous kind of guy...