Team:TU Delft/menu test

From 2010.igem.org

(Difference between revisions)
Line 72: Line 72:
$(function() {
$(function() {
-
$("#navlist > *").each (function() {
+
$("#navlist > * > *").each (function() {
   // load URL from link element
   // load URL from link element
-
   var url = $("*", this).attr("href");
+
   var url = this.href;
 +
  var button = $(this);
   button.click(function() {
   button.click(function() {

Revision as of 19:48, 4 June 2010