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;"
thanks for this.. using jQuery also we can do disable button.. for Jquery this may help you.. http://aspnettutorialonline.blogspot.com/2012/05/how-to-disable-button-using-jquery-with.html
ReplyDeleteThanks for your comments. Its helpful in jquery
ReplyDelete