I have a table(check box included) with data as following. And there is "ADD" button.
<script type="text/javascript">
I don't know what comes here..
</script>
.
.
.
.
<colgroup>
<col style="width:30px;"/>
<col style="width:200px;"/>
<col style="width:300px;"/>
<col style="width:px;"/>
</colgroup>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkAllGrp" name="chkAllGrp" onclick="CommonUtil.chkAll('chkAllGrp','chkGrp')"/></th>
<th scope="col">LINE</th>
<th scope="col">ITEM</th>
</tr>
</thead>
<tbody>
<c:forEach items="${resultList.content}" var="result" varStatus="status">
<tr>
<td><input type="checkbox" id="chkGrp" name="chkGrp" value="${result.line}"/></td>
<td style="cursor:pointer;" onclick="fnSelGrp('${result.line}', '${result.item}')">${result.line}</td>
<td>${result.item}</td>
</tr>
</c:forEach>
<div class="area_btnA clfix mgB20">
<a href="#" onclick="addInputBox();return false;" class="btnA"><strong>ADD</strong></a>
</div>
What I want to make is that when I click on the ADD button, a new row of text-input box appears on the bottom of displayed-data rows. Can anyone help me with OnClick event code?