How can i disable the jquery UI dialog buttons like :
$("#dialog").dialog({ width: 500, modal: true, show: 'drop', hide: 'drop',
buttons: {
"Next": function () {/* do something */ },
"Finish" : function {/* do something */ }
}
});
I want to keep disabled the Next button until user selects some radio button or checkbox and when user will select any of then 'Next button will enabled'. (Same behavior which we can see when we install any new software.).How can i do this?
idorclass, just set some event listeners with.onor.live(depending on jQuery version) calling for a validation/check function, it can't be that hard.