jQuery plugin for replacing img-tags with SVG content
-
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
-
Include plugin's code:
<script src="jquery.svgInject.js"></script>
-
Call the plugin:
$("#element").svgInject(function() { // Injection complete });
This plugin is available under the MIT license.
Made by Robert Bue