Wednesday, September 28, 2011

Disable button using javascript


function disableButton(btnId) {
            var btn = document.getElementById(btnId);
            btn.enabled = false;
            btn.disabled = true;
        }

 OnClientClick="if(CheckEmptyRecordComment()==true)javascript:disableButton(this.id); else
return false;"

2 comments: