<html>
<body>
<p><strong>Size Chart</strong></p>
<p> </p>
<p><strong>Measurement:CM<br /></strong></p>
<table class="sizechart">
<tbody>
<tr>
<td> </td>
<td>M</td>
<td>L</td>
</tr>
<tr>
<td>shoulder</td>
<td>100</td>
<td>150</td>
</tr>
<tr>
<td>length</td>
<td>40</td>
<td>80</td>
</tr>
</tbody>
</table>
<button onclick="convertINCH()">INCH</button>
<button onclick="functionname()">CM</button>
</html>
Hi there, I'm a beginner in Javascript so was wondering if anyone can help on this. I'm trying to set up a inch/cm conversion size chart.
1.When measurement shows "CM", and user clicks on "inch" button; the table switch to inch unit from CM.If user clicks on "CM" butoon, nothing happens.
2.When measurement shows "INCH", and user clicks on "CM" button; the table switch to CM unit from INCH.If user clicks on "INCH" butoon, nothing happens.
Appreciate if anyone can provides the code/guidance! Thanks, Vincent