I am new to jQuery and I want to enable and disable a dropdown list using a checkbox. This is my html:
To enable/disable -
$("#chkdwn2").change(function() { if (this.checked) $("#dropdown").prop("disabled",true); else $("#dropdown").prop("disabled",false); })
Demo - http://jsfiddle.net/tTX6E/