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

205
Views
How can I change the font size when I was editing a cell in a table

I was developing a spreadsheet editor. When I was editing a specific cell in the table, how can I change the cell's font size? I used getElementById
Code here:

<title>Gold Sheets</title>
<div id="toolbar">
    <select name='Font Size' id="ft_size" onchange="changeSize(this);">
        <option value="12">12</option>
        <option value="14">14</option>
        <option value="16" selected>16</option>
        <option value="18">18</option>
        <option value="24">24</option>
    </select>
</div>
<script>
function changeSize(e) {
    document.getElementById('textarea').style.fontSize = e.value + 'px'
}
</script>
<br>
<br>
    <table>
        <tr>
            <td>1</td>
            <td contenteditable id='textarea'></td>
            <td contenteditable id='textarea'></td>
            <td contenteditable id='textarea'></td>
        </tr>
   </table>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Answer Cleared Because of changing the question

about 4 years ago · Juan Pablo Isaza Report
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!