Hi
I am trying to enable and disable an image button based on some condition in my JSP page. I am using following code. Using my code functionality is working fine. I mean when it disable it does not do any thing. But the problem is when it is disabled from the browser it shows that enable. User can click on it but it does not do any thing. My requirement is that from the browser it should display disabled. User can not click on it.
Can any one help me?
Thank you very much for your help.
<%if(condition){%>
<html:image property="XXX" src="XXX.gif" onclick="YYY(); return false;" />
<%}else{%>
<html:image property="XXX" src="XXX.gif" disabled="true" onclick="YYY(); return false;" />
<%}%>