Hello. I have appended a svg into the html. Now I want to get those
svgs in jquery wrapper but I couldnt manage to fin a way. Below is the
code. How can I get different namspace tags by jQuery.


<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:svg="http://www.w3.org/2000/svg";>
          <head>

          <script type="text/javascript" src="http://jqueryjs.googlecode.com/
files/jquery-1.2.6.min.js">


          </script>

          </head>
  <body>
    <h1>SVG embedded inline in XHTML</h1>
    <svg:svg width="300px" height="200px">
      <svg:circle cx="150" cy="100" r="50" fill="#ff0000"/>
    </svg:svg>
        <h2 onclick="alert(jQuery('svg:svg').length)">Click Me</h2>
  </body>
</html>

Reply via email to