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

178
Vistas
How to slowly show-hide with jquery prop

When I click the button, I want to hide that button and show the div. I want this to be slow.For this:

$('#add_note').on('click',function (){
        $(this).hide(200);
        $('#add_note_form').show(200);
    })

i used this. But, I want to make this using prop('hidden',true/false).

$('#add_note').on('click',function (){
        $(this).prop('hidden',true);
        $('#add_note_form').prop('hidden',false);
    })

It works like this but is it possible to do it slow?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can't animate a slow transition using the boolean hidden property.

However you can use fadeOut() instead, then set the property in the callback when the animation completes:

$('#add_note').on('click',function() {
  $(this).fadeOut(1000, function() {
    $(this).prop('hidden', true);
  });

  $('#add_note_form').fadeIn(1000);
})
about 4 years ago · Juan Pablo Isaza Denunciar
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