1 /* upon document completion, we locate all the hide and show areas,
2 * and configure their behaviour
4 $(document).ready(function() {
5 $('.plugin-hide').each(function() {
6 $(this).click(function () {
7 var plugin='#'+$(this).attr('id').replace('hide-','');
8 var show='#'+$(this).attr('id').replace('hide-','show-');
9 $(plugin).slideUp(); $(show).show(); $(this).hide();});
11 $('.plugin-show').each(function() {
12 $(this).click(function () {
13 var plugin='#'+$(this).attr('id').replace('show-','');
14 var hide='#'+$(this).attr('id').replace('show-','hide-');
15 $(plugin).slideDown(); $(hide).show(); $(this).hide();});