javascript - how to disable buttons based on a condition in jsp? -



javascript - how to disable buttons based on a condition in jsp? -

how can disable button checking status in jsp? if true,then button enabled,if false,then button disabled. status checking value of variable. know how disable button using javascript, utilize along status in jsp i'm not able figure out. @ possible?

try using jstl construction this:

<input type="button" <c:if test="${variable == false}"><c:out value="disabled='disabled'"/></c:if>">

for more examples see http://www.ibm.com/developerworks/java/library/j-jstl0211/index.html

javascript jsp button

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -