Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda