Template:Team:TU Munich/ExCol
From 2012.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
$('h2').next('div').hide() | $('h2').next('div').hide() | ||
$('h2').next('div').prev().click(function() { | $('h2').next('div').prev().click(function() { | ||
- | if( $(this). | + | if( $(this).children('.excol').html() == [Expand]) { |
- | $(this). | + | $(this).children('.excol').html(' [Collapse]') |
}else { | }else { | ||
- | $(this). | + | $(this).children('.excol').html(' [Expand]') |
} | } | ||
$(this).next('div').fadeToggle() | $(this).next('div').fadeToggle() |
Revision as of 20:40, 23 September 2012