Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Enable the filelds inside the logic:iterate

 
S RamaKrishna Reddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic