Hi friends,
I am able to create a row dynamically with 3 cells(i.e column).
In my 3rd cell i need to add another row. Is it possible to acheive it. I am using Java script for it.
This is the table structure:
<table align="center" id="msgfield" width="100%" cellpadding="1" cellspacing="0" border="1" bordercolorlight="#999999" bordercolordark="#FFFFFF" bordercolor="black">
<tr class="tableDataTextStyle">
<td width="15%">
<html:text property="alertFieldName" styleClass="textBoxStyle" size="12" maxlength="50" readonly="<%=readOnly%>"/>
</td>
<td width="15%">
<html:text property="alertFieldStartPos" styleClass="textBoxStyle" size="12" maxlength="50" readonly="<%=readOnly%>"/>
</td>
<td width="13%">
<html:text property="alertFieldLength" styleClass="textBoxStyle" size="10" maxlength="50" readonly="<%=readOnly%>"/>
</td>
<td width="35%">
<table align="center" width="100%" cellpadding="1" cellspacing="0" border="0">
<tr class="tableDataTextStyle">
<td>
<html:select property="alertFieldFormat" onchange="selectFormat();" styleClass="tableDataTextStyle1">
<html:option value="">Select</html:option>
<html:option value="Decimal">Decimal</html:option>
<html:option value="Masking">Masking</html:option>
<html:option value="Date">Date</html:option>
</html:select>
</tr>
</table>
<table id="decimal" width="100%" border="0">
<tr class="tableDataTextStyle">
<td>Decimal Point </td>
<td><html:text property="alertFieldLength" styleClass="textBoxStyle" size="10" maxlength="50" readonly="<%=readOnly%>"/></td>
</tr>
<tr class="tableDataTextStyle">
<td>Decimal Format</td>
<td>
<html:select property="alertFieldFormat" styleClass="tableDataTextStyle1">
<html:option value="">Select</html:option>
</html:select>
</td>
</tr>
</table>
<table id="masking" width="100%" border="0">
<tr class="tableDataTextStyle">
<td>Masking Text </td>
<td><html:text property="alertFieldLength" styleClass="textBoxStyle" size="10" maxlength="50" readonly="<%=readOnly%>"/></td>
</tr>
<tr class="tableDataTextStyle">
<td>Mask Position</td>
<td>
<html:select property="alertFieldFormat" styleClass="tableDataTextStyle1">
<html:option value="">Select</html:option>
<html:option value="L">Left</html:option>
<html:option value="R">Right</html:option>
</html:select>
<html:text property="alertFieldLength" styleClass="textBoxStyle" size="1" readonly="<%=readOnly%>"/>
</td>
</tr>
</table>
<table id="date" width="100%" border="0">
<tr class="tableDataTextStyle">
<td>Source Format </td>
<td><html:text property="alertFieldLength" styleClass="textBoxStyle" size="10" maxlength="50" readonly="<%=readOnly%>"/></td>
</tr>
<tr class="tableDataTextStyle">
<td>Output Format</td>
<td>
<html:text property="alertFieldLength" styleClass="textBoxStyle" size="10" maxlength="50" readonly="<%=readOnly%>"/>
</td>
</tr>
</table>