I have a button which should be disabled when the JSP page loads.
How do I achieve this?
I have a button which should be disabled when the JSP page loads.
How do I achieve this?
If there is no any specific conditions for disabling button, you can use HTML attribute disabled. Like this, instead of dynamically changing it on load.
<input type="button" disabled="disabled" value="My button" name="btn1" />