Team:NCTU Formosa/source/header-notebook
From 2014.igem.org
(Difference between revisions)
Line 126: | Line 126: | ||
block.click( | block.click( | ||
function() { | function() { | ||
- | index = block. | + | index = block.index(this)+1; |
alert(index); | alert(index); | ||
- | $(this).closest('. | + | $(this).closest('.card').find('.note:nth-child('+index+')').slideToggle('fast'); |
} | } | ||
);} | );} | ||
$(document).ready(function() {initMenu();}); | $(document).ready(function() {initMenu();}); | ||
</script> | </script> |
Revision as of 18:33, 5 October 2014