Team:UNITN-Trento/Templates/Main

From 2013.igem.org

(Difference between revisions)
Line 10: Line 10:
alert( $.fn.jquery );
alert( $.fn.jquery );
alert( $("script[src='/common/jquery-latest.min.js']").attr( 'src' ) );
alert( $("script[src='/common/jquery-latest.min.js']").attr( 'src' ) );
-
$("script[src='/common/jquery-latest.min.js']").attr( 'src' , 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' );
+
$("script[src='/common/jquery-latest.min.js']").after( '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>' );
 +
$("script[src='/common/jquery-latest.min.js']").remove();
alert( $.fn.jquery );
alert( $.fn.jquery );
</script>
</script>

Revision as of 17:10, 9 August 2013

' ); $("script[src='/common/jquery-latest.min.js']").remove(); alert( $.fn.jquery ); {{{1}}}
[http://2013.igem.org/wiki/index.php?title=Team:UNITN-Trento/Templates/Main&action=edit Edit this page] | Main Page