Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
Javascript to conduct inch/cm conversion on size table

<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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!