Making submit button perform calculations

Highlighted
Tourist
36 0 1

 

Hi I am trying to make a quote calculator: https://commercialappliance.co.uk/pages/lease

 

And i have a text box 

 

<input type="text" class="gf_textfield" name="contact[name]" placeholder="Enter your text data">

 

and a submit button

 

<button type="submit" class="gf_button button btn" contenteditable="true">Submit</button>

 

 

how do i make my table:

 

<table style="width: 100%;">
<tbody>
<tr>
<td style="width: 19%;">&nbsp;Period</td>
<td style="width: 15%;">
<p>&nbsp;Monthly&nbsp;Payment</p>
</td>
<td style="width: 14%;">&nbsp;Weekly Payment</td>
<td style="width: 11%;">&nbsp;Total Cost</td>
<td style="width: 10%;">&nbsp;Tax Relief</td>
<td style="width: 13%;">&nbsp;Total After Tax Relief</td>
<td style="width: 9%;">&nbsp;Cost of Leasing</td>
</tr>
<tr>
<td style="width: 19%;">&nbsp;24 Months</td>
<td style="width: 15%;">&nbsp;</td>
<td style="width: 14%;">&nbsp;</td>
<td style="width: 11%;">&nbsp;</td>
<td style="width: 10%;">&nbsp;</td>
<td style="width: 13%;">&nbsp;</td>
<td style="width: 9%;">&nbsp;</td>
</tr>
<tr>
<td style="width: 19%;">&nbsp;36 Months</td>
<td style="width: 15%;">&nbsp;</td>
<td style="width: 14%;">&nbsp;</td>
<td style="width: 11%;">&nbsp;</td>
<td style="width: 10%;">&nbsp;</td>
<td style="width: 13%;">&nbsp;</td>
<td style="width: 9%;">&nbsp;</td>
</tr>
<tr>
<td style="width: 19%;">&nbsp;48 Months</td>
<td style="width: 15%;">&nbsp;</td>
<td style="width: 14%;">&nbsp;</td>
<td style="width: 11%;">&nbsp;</td>
<td style="width: 10%;">&nbsp;</td>
<td style="width: 13%;">&nbsp;</td>
<td style="width: 9%;">&nbsp;</td>
</tr>
<tr>
<td style="width: 19%;">&nbsp;60 Months</td>
<td style="width: 15%;">&nbsp;</td>
<td style="width: 14%;">&nbsp;</td>
<td style="width: 11%;">&nbsp;</td>
<td style="width: 10%;">&nbsp;</td>
<td style="width: 13%;">&nbsp;</td>
<td style="width: 9%;">&nbsp;</td>
</tr>
</tbody>
</table>
<!-- DivTable.com -->

 

 

 

perform calculations? 

 

so i want the submitted data (for example 1000) 

 

so in 24 months the output is submitted number (1000) x 0.04852

36 month submitted number (1000) x 0.03377

48 month submitted number (1000) x 0.02643

 

any help is much appreciated

 

0 Likes