<form:input disabled="true"> is blocking the data in the request object
Hi,
While using form:input & trying to disable it either by disabled attribute or by js function onchange, it seems to block the data from being sent to the server.
This is the code:
Code:
<form:input
id="input_value_integer"
title="From line ${increment}"
privilegeId="<%= Constants.PRIVELEGE.ADM_MANAGE_PRICING %>"
path="defPPLst[${dPPSts.index}].fromBulkLevel"
cssClass="forminput"
cssStyle="align:left; "
onkeypress="return noEnter(event);"
onchange="checkInput(this)"
onselect="initInput(this)"
onfocus="initInput(this)"
onmousedown="disableField(this);"
/>
Code:
function disableField(field){
field.disabled=true;
}
How do i disable the field & in the same time able to send it's actual data to the server & back?
Thanks.