I'm trying to make a function change the contents of a TD cell in my table.
I want to move from:
<td id="tdDespesas" style="border-right:1px solid #FFFFFF;border-bottom: 1px solid #FFFFFF;">{label_orcadoRealizado_despesas}
<img id='btnOne' src='{raiz}images/layout/row_plus.gif' onclick='showLines()' title='Extender' style='cursor: pointer; margin-left: 5px;'/>
<img id='btnTwo' src='{raiz}images/layout/row_minus.gif' onclick='hideLines()' title='Diminuir' style='cursor: pointer; margin-left: 5px;'/>
</td>
To:
<td id="tdDespesas" style="border-right:1px solid #FFFFFF;border-bottom: 1px solid #FFFFFF;">{label_orcadoRealizado_despesas}
</td>
I need to do this because the function would be a PDF print and unfortunately the btnOne and btnTwo button codes are appearing. Put hide or display: none on the buttons do not do this for now.
What would be the best solution? InnerHTML or InnerContent unfortunately do not work.