Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda