something like this maybe... ?
function pageLoad() // automatically called (and necessary to use when working with comboboxes)
{
// add change event to cmbx1
$find("<%=cmbx1.ClientID%>").add_propertyChanged(
function (sender, e) {
if (e.get_propertyName() == 'selectedIndex') {
cmbx1_onChange();
}
});
}
function cmbx1_onChange()
{
// get selected value of box 1
var cmbx1Value = $find("<%=cmbx1.ClientID%>").get_textBoxControl().value;
// enable box 2 if selected value of box 1 is 1, else disable
$find("<%=cmbx2.ClientID%>").get_textBoxControl().disabled = cmbx1Value != 1;
$find("<%=cmbx2.ClientID%>").get_buttonControl() .disabled = cmbx1Value != 1;
}
except without all the indentation stripped