Hello Everyone!
I am using jquery export to excel plugins in my html page. That is working fine, but the problem I am facing is it is exporting the button (like submit button) also to excel file, which I dont want. Please give me some idea how can I ignore the button from export. Below is my code snippet
<div id="dv">
<table class="imagetable" border="1" id="tblExport" >
<tbody>
<tr>
<td><b>Entry Date</b></td>
<td><b>Exit Date</b></td>
<td><b>Assigned By</b></td>
<td><b>Assigned To</b></td>
<td><b>Status</b></td>
<td><b>Work Details</b></td>
<td><b>Remarks</b></td>
<td><b>Update Records</b></td>
</tr>
<c:forEach items="${requestScope.rmList}" var="reminders">
<tr >
<td><c:out value="${reminders[0]}"></c:out></td>
<td><c:out value="${reminders[1]}"></c:out></td>
<td><c:out value="${reminders[2]}"></c:out></td>
<td><c:out value="${reminders[3]}"></c:out></td>
<td><c:out value="${reminders[4]}"></c:out></td>
<td><c:out value ="${reminders[5]}"></c:out></td>
<td><c:out value ="${reminders[7]}"></c:out></td>
<td>
<input type="submit" name="perform" value="Edit"
style="background-color: #5E3C23; font-family: inherit; font-size: 15; color: white; font-style: bold;">
</td>
</tr>
</c:forEach>
<c:if test="${empty rmList}">
<tr>
<td colspan=10 align="center"><b>Records Not Found!</b></td>
</tr>
</c:if>
</tbody>
</table>
</div>
<script src="excelimport/jquery.btechco.excelexport.js"></script>
<script src="excelimport/jquery.base64.js"></script>
<script>
$(document).ready(function () {
$("#btnExport").click(function () {
$("#tblExport").btechco_excelexport({
containerid: "tblExport"
, datatype: $datatype.Table
});
});
});
</script>
.