Template:Team:Waterloo/JS/CiteTag
From 2014.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
$( "cite" ).each( | $( "cite" ).each( | ||
function( index) { | function( index) { | ||
- | $(this).html( "<a | + | var name = "#Citation_" + $(this).attr("ref"); |
+ | $(this).html( "<a href=\"" + name + "\">" + $(name).text() + "</a>" ); | ||
} | } | ||
); | ); |
Revision as of 23:33, 8 October 2014