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

73
Visualizações
Explore .html file input with Javascript

I'm a beginner at Javascript and I would like to build a Web application (html, css and JS). This application allows you to add a .html file (which contains a table with a defined class inside).

I managed to make the input and load it into the Javascript but then I can't get the table into the .HTML file The file seems to be in "blob" format ??? The goal is to display the table in my index.html and then style it.

<p>Depot du fichier d'identification :</p>
<label for="myfile">Select a file:</label>
<input type="file" id="myfile" name="myfile">
<p></p>


<script src="script.js"></script>
// file recuperation (script.js)
const fileInput = document.getElementById('myfile');
fileInput.onchange = () => {
    const selectedFile = fileInput.files[0];
    console.log(selectedFile);
    const table = fileInput.getElementsByClassName("identification");
    console.log(table);
}

Thank you in advance.

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