Template:Team:Waterloo/JS/CiteTag

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
$( "cite" ).each(
$( "cite" ).each(
-
   function( index, citeTag ) {
+
   function( index) {
-
     citeTag.val( "<a>" + $( "#Citation_" + citeTag.attr("ref") ).val() + "</a>" );
+
     $(this).val( "<a>" + $( "#Citation_" + $(this).attr("ref") ).val() + "</a>" );
   }
   }
);
);

Revision as of 23:28, 8 October 2014