Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to keep a check box and some listboxes.. If user clicks that checkbox then one listbox should be disabled..Plz help with sample code...........
Posted

1 solution

You can do it using JavaScript
<removed type="checkbox" id="checkbox1" onclick="disableListBox()">

Javascript Function:
JavaScript
function disableListBox()
{
	document.getElementById("ListBox1").disable = true;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900