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

93
Visualizações
Apply IMask to created element

I want to be able to press a button and create two new inputs below the button, the first input needs to be formatted by imask as follows: 00:00:00

Currently I can only do that to the inputs I create manually. How can I add IMask configs to every created button? Here is my function that creates the inputs.

const createInputs = event => {
    var child_location = document.getElementById('inputs');

    var duration = document.createElement('input');
    duration.id = 'input1'
    child_location.parentNode.appendChild(duration);


    var title = document.createElement('input');
    title.id = 'title'
    child_location.parentNode.appendChild(title);

    var lineBreak = document.createElement('br');
    child_location.parentNode.appendChild(lineBreak);
}
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