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

158
Visualizações
Javascript function is not get called (onclick => function name)

My javascript function is not get called , but it get called when i open the console window by inspect->console

when this was opened ,on that time , my javascript onclick function was getting called perfectly and my code on that function gets executed

but without opening my console log tab (inspect->console) , on that case it is not getting called

my code:


<%= form.check_box 'active', :class=>"icheck", :"data-checkbox" => "icheck_val_box", :onclick =>"clickfun()" %>
<%= form.label 'active', 'mybooklib'%>

the function



function clickfun(){
$("#savebookicon").attr("disabled",true);
});

but this clickfun funciton is only working if my console log window was opened,

this was new kind of error to me, i didnt came accross this kind of error so can anyone help meout?

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