I have an onclick code on my image to disable the button on my form that look like this
<img alt="" src="images/search-icon.png" width="16" height="16" style="display: inline;height:16px;cursor:pointer; width: 16px;" onclick="DisableButton('<%=btnSave.ClientID %>');" />
And then on my javascript I have a code like this
function DisableButton(bSave) {
document.getElementById(bSave).attributes("Enabled", false);
}
the problem is it is not working, everytime i click on the image nothing happens. Is there an error on my code? Please help me on this one. Thank you in advance.
imgin abutton, move theonclickto the button and change the alt text toalt="search".