Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
Line 11: Line 11:
               var subm = $('#access strong').parents("ul.children").find("li.page_item");
               var subm = $('#access strong').parents("ul.children").find("li.page_item");
               subm.each(function(index, item) {
               subm.each(function(index, item) {
-
                   var appendt = subm.html();
+
                   var appendt = $('#submenu').html();
-
                   $('#submenu').html(appendt+"<span>"+item+"</span>");
+
                   $('#submenu').html(appendt+"<span>"+item.text()+"</span>");
                   var is_last_item = (index == (subm.length - 1));
                   var is_last_item = (index == (subm.length - 1));
               });  
               });  

Revision as of 00:49, 27 August 2011