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

116
Vistas
Save the results of this table with javascript

I am creating a website and I want users to be able to register in a quadrant the hours they have available to offer a service. I have made a table and I can mark and change color. Now I need this to be recorded in a database, I guess, and to be visible to other users who visit my website.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>Untitled</title>
   <script language="javascript" type="text/javascript">
   function ilumina(celda){
    if (celda.style.backgroundColor=="yellow")
        {
        celda.style.backgroundColor="green";
        }
    else
        {
        celda.style.backgroundColor="yellow";
        }
    }
  </SCRIPT>
  </head>
  <body>
    <table border="1" width="50%">
        <tr>
            <td bgcolor="green" onclick="ilumina(this)">9-10 a.m</td>
            <td bgcolor="green" onclick="ilumina(this)">10-11 a.m</td>
            <td bgcolor="green" onclick="ilumina(this)">11-12 a.m</td>
            <td bgcolor="green" onclick="ilumina(this)">12-13 a.m</td>
        </tr>
        
  </table>
  </body>
</html>

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