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

193
Visualizações
Hide Submit button when particular div element is loaded in the page

I have the following html code and this is a part of the html

<div id="mount"
 <span> please wait while we are loading...</span>
</div>

and I have a main submit button

<div id="MainContentbutton" class="buttonscontainer" data-kaction="submitdiv" style="display:block";>

 <input type="submit" name="MainContentbtnsubmit" value="submit" id="MainContentbtnsubmit"
 class="submitbutton" onbeforesubmit="Application_onbeforeSubmit" data-kaction="submit" style="font-weight:bold;>
<div>

I wanted to hide the button by using

display:none 

and this should hide only when the following div is loaded.

 div id="mount"

I am trying to find the solution and learn in the process.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

In your Js file or wherever you load the data when the result comes in you can do it like this:

// this function is to fake the loading 
function delay(time) {
  return new Promise(resolve => setTimeout(resolve, time));
}

delay(1000).then(() {

  var mount = document.getElementById('mount');
  var submitButton = document.getElementById('MainContentbtnsubmit');

  mount.css({'display' : 'none'});
  submitButton.css({'display' : 'block'});

});

Don't forget to set the display of the button to none, in line css.

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