Changing content of a TD

0

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.

    
asked by anonymous 24.08.2015 / 16:19

1 answer

0

If the problem is printing, then use @print in the CSS, so you can hide the buttons only at the time of printing.

Example:

@media print{

  .btnOne, .btnTwo { display:none; }
}
    
24.08.2015 / 17:12