Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
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 Respuestas
Responde la pregunta

0

Answer Cleared Because of changing the question

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda