This version is old school.
Please find jQuery plugins on npm.
SVGStyle - manipulate with styles of SVG inline like 'data:image/svg+xml;base64'
Plugin to manipulate runtime with styles of SVG and it's magic. This is a simple way to manipulate with SVG-styles of 'inline' data like url(data:image/svg+xml;base64,...). You can use the dynamic change of style like $('#id').svgStyle('fill:#333') or $('.class').svgStyle('stroke: #b3b3b3; stroke-width: 5') or set it by default in tag data-svg-style='fill:#bbb'. And now you can set the color like data-svg-style='#xxx|#xxxxxx|rgb(x,x,x)'