posted 12 years ago
I am new to use the logic tags. Please help me. How to enable filelds inside the logic:iterate
<logic:iterate name="domainValueForm" property="domainValueData.domainValuesLst" id="all">
<tr>
<td>
<input id="domainValueStr" type="text" disabled="true" value= "<bean:write name='all' property="domainValueStr"/>"/>
</td>
<td><input id="domainValueDescription" type="text" disabled="true" value= "<bean:write name='all' property="domainValueDescription"/>"/></td>
<td><html:radio styleId="rstatus" name="all" disabled="true" property="status" value="ACTIVE" indexed="true"/><bean:message key="label.enable" />
<html:radio styleId="rstatus1" name="all" disabled="true" property="status" value="INACTIVE" indexed="true"/><bean:message key="label.disable" /></td>
<td><html:textarea styleId="domainValueRemarks" disabled="true" styleClass="domain-value-textarea" name="all" property="domainValueRemarks"/></td>
<td><input type="button" value="" class="edit-btn" onclick="javascript:enableDomainValues();"></td>
</tr>
</logic:iterate>
function enableDomainValues(){
document.getElementById('all').disabled=false;
}