i'm pretty new to coding and stuffs.. so i have website where it has a mortgage calculator, and i have trouble with hiding the calculations (I don't want the calculations to be visible)
I've tried using <!--- and ---> but it didn't work out,
Do anyone have suggestions?
<table class="table" style="line-height:1.5">
<tbody>
<tr>
<td rowspan="3" valign="top" style="font-family:Avenir;">Harga Rumah</td>
</tr>
<tr>
<td style="font-family:Avenir;"> = Rp <span id="hasil_harga_rumah">0</span> - Rp <span id="hasil_uang_muka">0</span></td>
</tr>
<tr>
<td style="font-family:Avenir;"> = Rp <strong><span id="pinjaman">0</span></strong></td>
</tr>
<tr>
<td rowspan="3" valign="top" style="font-family:Avenir;">Total Kredit</td>
</tr>
<tr>
<td style="font-family:Avenir;"> = Rp <span class="hasil_pinjaman">0</span> + (Rp <span class="hasil_pinjaman">0</span> * <span id="hasil_margin">0</span>% * <span class="hasil_tenor">0</span> tahun)</td>
</tr>
<tr>
<td style="font-family:Avenir;"> = Rp <strong><span id="total_pinjaman">0</span></strong></td>
</tr>
<tr>
<td rowspan="3" valign="top" style="font-family:Avenir;">Cicilan / bulan </td>
</tr>
<tr>
<td style="font-family:Avenir;"> = Rp <span id="hasil_total_pinjaman">0</span> / <span class="hasil_tenor">0</span> / 12 </td>
</tr>
<tr>
<td style="font-family:Avenir;"> = Rp <strong><span id="cicilan_bulanan">0</span></strong></td>
</tr>
<tr>
<td rowspan="2" valign="top" style="font-family:Avenir;">Persentase Cicilan</td>
</tr>
<tr>
<td style="font-family:Avenir;"> = <strong><span id="persentase_cicilan">0</span> %</strong></td>
</tr>
<tr>
<td colspan="2" style="font-family:Avenir;"></td>
</tr>
</tbody>
</table>
Can you try adding the display="none" style property?
For example on a <div> tag:
<div style="display: none">
... calculator stuff...
</div>
If you can you should try using a Cascading Stylesheet instead of adding style attributes on html tags:
see for example the 'External CSS' part of https://www.w3schools.com/html/html_css.asp .
And here is some additional info on the CSS display property: https://www.w3schools.com/css/css_display_visibility.asp