-2
I have the following structure
$tabDados = "<table id='cabTabela' border='3'>
<tr>
<td id='cabCelula'> <br>nome completo</td>
<td id='cabCelula'> <br>numero de telefone </td>
<td id='cabCelula'> <br>endereco</td>
<td id='cabCelula'> <br>Data da movimentação </td>
<td id='cabCelula'> <br>Dias parados </td>
</tr>
</table>";
$tabDadosMov .= "<table id='movTabela' border='3'>
<tr>
<td id='movCelula'> <br>$nome</td>
<td id='movCelula'> <br>$numero</td>
<td id='movCelula'> <br>endereco</td>
<td id='movCelula'> <br>$data_inicial</td>
<td id='movCelula'> <br>$tempoParado</td>
</tr>
</table>";
I would like to show the second table only if the user clicks on the "display data".
I saw that you can do with the display: None css, but I could not because it is a variable
Putting
display: none:
doesn’t work? -->$tabDadosMov .= "<table id='movTabela' border='3' style="display: none;">
. Actually you will not be hiding by PHP, but by CSS. I believe you need to understand more basic notions of programming.– Sam
"ocular"? I think I should read the website guidelines at [Ask].
– Sam
I tried, but for some reason it didn’t work. I’m trying another alternative, thank you very much >:)
– Lucas Moreira
it worked, thank you very much, I had tried, but for some reason the css application fails sometimes, and to fix I have to change the name of the css file, I haven’t figured out the reason why
– Lucas Moreira