I have SVG code in a HTML page, I want to use the jQuery change the SVG dom background-color,but I can't change it, how can I do it?
<desc>3014</desc>
<rect x="0" width="63" height="36.15" y="976.138" class="position-bounds st7"></rect>
<text x="7.17" y="1001.41" v:langid="1033" class="position-text st8">3014</text>
$(document).ready(function(){
$('text[text=3014]').attr('fill','red');
})