Menu icon Foundation

My Posts



My Comments

italo maia commented on italo maia's post about 4 years

  • children xP

italo maia commented on italo maia's post about 4 years

There is a problem with my JS code. The correct is:

 $('.slider').on('moved.zf.slider', function(){
    console.log($(this).chlidren('.slider-handle').attr('aria-valuenow'));
});

italo maia commented on Owen Franssen's post about 4 years

Just had the same issue with "moved.zf.Slider" from slider, which should actually listen to moved.zf.slider (lowercase). So, the correct code would be:

$("query").on('moved.zf.slider', function(event){ /* do stuff */ }) 

A lot of time was spent until I figured it out. Reading this post earlier would have saved me a lot of time sadface.

Posts Followed


Following

    No Content

Followers

My Posts

My Comments

You commented on italo maia's post about 4 years

  • children xP

You commented on italo maia's post about 4 years

There is a problem with my JS code. The correct is:

 $('.slider').on('moved.zf.slider', function(){
    console.log($(this).chlidren('.slider-handle').attr('aria-valuenow'));
});

You commented on Owen Franssen's post about 4 years

Just had the same issue with "moved.zf.Slider" from slider, which should actually listen to moved.zf.slider (lowercase). So, the correct code would be:

$("query").on('moved.zf.slider', function(event){ /* do stuff */ }) 

A lot of time was spent until I figured it out. Reading this post earlier would have saved me a lot of time sadface.

Posts Followed

Following

  • No Content

Followers

  • No Content