Switch contenu d'une div


/ Published in: jQuery
Save to your folder(s)

Change le contenu de .triggerListTv lor du toggle


Copy this code and paste it in your HTML
  1. function accordeonTV(){
  2.  
  3. var contexte = jQuery('.triggerListTv', '#identifiantTV .themeVideos');
  4.  
  5. jQuery(contexte).toggle(
  6. function(){
  7. jQuery(this).html("Fermer la playlist").addClass('playListOuvert').siblings('.conteneurListVidTv').slideDown();
  8. },
  9. function(){
  10. jQuery(this).html("Ouvrir la playlist").removeClass('playListOuvert').siblings('.conteneurListVidTv').slideUp();
  11. }
  12. );
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.