$.get('/vectorimage.svg', function(svg){
//returns undefined
console.log(svg.getElementsByTagName('svg')[0].innerHTML);
//returns undefined
console.log(svg.documentElement.innerHTML);
//returns document
console.log(svg);
});
I want to get the response as a string plain and simple.
$.get('/vectorimage.svg', function(svg){
console.log( svg );
}, 'text');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With