What a good way to enable and disable a combobox with a checkbox?
<label><input type='checkbox' onchange='handleClick(this);'>Checkbox</label>
<label id="label"></label>
Thanks in advance
What a good way to enable and disable a combobox with a checkbox?
<label><input type='checkbox' onchange='handleClick(this);'>Checkbox</label>
<label id="label"></label>
Thanks in advance
Nevermind i got it.
In the handleClick function i put an extra controle to display the combobox.
if(cb.checked)
{
document.getElementById('combo_zonecbtext').style.display = "none";
}
else
{
document.getElementById('combo_zonecbtext').style.display = "";
}