rexjiang92
1/6/2020 - 4:13 PM

team bio show and hide

// team bio more functionality
jQuery('#block-contentlist .team-member .main-section .field--name-field-biography .bio-more-btn').click(function(){
  if( jQuery(this).hasClass('open') ){
    jQuery(this).removeClass('open').html('More').next('.bio').slideUp();
  }else{
    jQuery(this).addClass('open').html('Hide').next('.bio').slideDown();
  }
});


----


<div class="bio-more-btn">More
</div>
<div class="bio">
  <p>Ken Liwiski has been with the company for over 20 years. As a Senior Financial Advisor, Ken works with successful investors, advising on investments, insurance, retirement and estate planning. Ken also specializes in advising successful business owners and incorporated professionals with tax efficient succession, retirement, insurance,&nbsp;and estate planning strategies. Ken also volunteers as a committee member for the St James Assiniboia 55 Plus Centre relocation.
  </p>
</div>