Template:Team:TU Munich/ExCol

From 2012.igem.org

(Difference between revisions)
Line 17: Line 17:
  $('h3').next('div').hide()
  $('h3').next('div').hide()
  $('h3').next('div').prev().click(function() {
  $('h3').next('div').prev().click(function() {
 +
  if( $(this).children('.excol').html() == ' [Expand]') {
 +
  $(this).children('.excol').html(' [Collapse]')
 +
  }else {
 +
  $(this).children('.excol').html(' [Expand]')
 +
  }
   $(this).next('div').fadeToggle()
   $(this).next('div').fadeToggle()
  });
  });

Revision as of 20:42, 23 September 2012