I'm trying to load an external SVG file and change the fill style of a path element. The following code doesn't seem to have any effect:
$(function() {
$('#map').svg({
loadURL: 'Map_of_USA_with_state_names.svg',
onLoad: function(svg) {
var path2688 = svg.getElementById('path2688');
svg.style(path2688, {'fill':'rgb(255,0,0)'});
}});
});
Is there something I need to do so that changes to the style take effect?