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

204
Visualizações
How can I have a list in HTML JS being pulled from a JSON db and have each row link to their respective pages?

I have a list in HTML/JS being pulled from a JSON database. I need to have each row link to their respective pages. I've done this before in Laravel, but I absolutely no idea how to achieve this in JS. Any help is greatly appreciated.

<body>
  <table id="userdata" style="width: 100%;">
        <tbody id="jobsData">
            <tr>
                <td>
                    <div style='padding-top: 1%; padding-bottom: 1%;'>
                        <a href="specificPageForEachRow">
                            <div style='border: 1.7px solid black; border-radius: 10px; padding: 2%;'>
                                <span >
                                    <img src='/img/logo2.png' height='60px'>
                                </span> 
                                &nbsp;
                                <span style='padding-top: 1%; padding-bottom: 1%; color: black; font-weight: 500;'>&nbsp;&nbsp;
                                    f.role &nbsp; @&nbsp; f.company &nbsp;
                                    <br>
                                    f.location
                                </span
                            </div>
                        </a>
                    </div> 
                </td>
            </tr>
        </tbody>
    </table>
</body

Sample JSON data:

{"records":[{"id":"recgBheSJnv3Zhtjy","createdTime":"2015-11-17T17:30:26.000Z","fields":{"company":"Chapel Hill Chameleons","role":"Mascot","logo":"https://dl.airtable.com/.attachments/590d18b9a1c16ee8b11a9ec262400f68/3f27f14e/logo2.png","roleDescription":"Looking to rebrand—rumor has it that their current mascot, Charlie Chameleon, is stepping down soon, and they need a new mascot for the team.","location":"Chapel Hill, NC","companyDescription":"Minor league hockey team","dateAdded":"2015-11-17"}}]}
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