F
Fluffy Convict
Does anybody know how to disable only certain options of an option list
by a javascript function? With the following function you can disable a
option list completely:
function disableList()
{
var x=document.getElementById("myOptionList")
x.disabled=true
}
But what if I just want to disable one option, or two - so that this
option cannot be clicked / selected anymore?
By the way: <optgroup label="disabledOption"> is not an option, since I
have to disable / enable the options in real time according to users input.
I've been stuck with this problem for days now, so any help would be
greatly appreciated!
by a javascript function? With the following function you can disable a
option list completely:
function disableList()
{
var x=document.getElementById("myOptionList")
x.disabled=true
}
But what if I just want to disable one option, or two - so that this
option cannot be clicked / selected anymore?
By the way: <optgroup label="disabledOption"> is not an option, since I
have to disable / enable the options in real time according to users input.
I've been stuck with this problem for days now, so any help would be
greatly appreciated!