jquery’s append not working with svg element?

Assuming this: <html> <head> <script type=”text/javascript” src=”https://stackoverflow.com/questions/3642035/jquery.js”></script> <script type=”text/javascript”> $(document).ready(function(){ $(“svg”).append(‘<circle cx=”100″ cy=”50″ r=”40″ stroke=”black” stroke-width=”2″ fill=”red”/>’); }); </script> </head> <body> <svg xmlns:svg=”http://www.w3.org/2000/svg” … Read more

SVG: text inside rect

I want to display some text inside SVG rect. Is it possible? I tried <svg xmlns=”http://www.w3.org/2000/svg”> <g> <rect x=”0″ y=”0″ width=”100″ height=”100″ fill=”red”> … Read more