Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9016003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:53:13+00:00 2026-06-16T03:53:13+00:00

jQuery is designed to be used in HTML pages with JavaScript. SVG uses the

  • 0

jQuery is designed to be used in HTML pages with JavaScript.

SVG uses the same DOM Level 2 as HTML but is XML-based and specifies ECMAScript.

What problems could result from using jQuery with SVG? Would it be preferable to embed such SVG as an element in an HTML document?

Note, I’m not referring to the “jQuery SVG” drawing library which provides for manipulation of an SVG element in an HTML document as a graphics port using jQuery syntax. What I want is to use jQuery selectors and event management on SVG elements, with the SVG root maybe being inside HTML or maybe not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:53:14+00:00Added an answer on June 16, 2026 at 3:53 am

    Trying it out, selectors seem to work but other things don’t. The $( function() { } ) idiom to initialize the page doesn’t work because SVG only passes an SVGLoad event to the top <svg> element. $('svg').bind('SVGLoad', function(){}) does work, though.

    Dynamically adding elements with .append puts them in the DOM such that they don’t get rendered, at least on Firefox. The phantom elements remain invisible even after the document is re-rendered including an element dynamically added without jQuery. $().attr(key, value) may change an attribute but not update the onscreen display.

    It all seems unfortunately broken. More features work once it’s embedded in an XHTML document. But defects such as the above remain and it’s probably better to use another framework. Maybe give jQuery SVG another look…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.thecommonwealthmembers.com/ I designed a website, and used jQuery and CSS on the contact form
Because jQuery is a widely used and mature collaborative effort, I can't help but
I've built a form using HTML and jQuery. The form is designed to generate
We use jQuery Mobile inside a PhoneGap app designed for iOS devices. But it
If my html is like this <body> <b><span>jQuery</span> is designed to change the way
I designed a webpage and a mobile version of the same page (using jQuery
I am using a script from http://www.yourinspirationweb.com/en/jquery-how-to-create-a-news-ticker-with-just-a-few-javascript-lines/ which is a great newsticker, designed to
Using Share Point Designer 2010. I want to conduct client side validation (jquery) but
jQuery Mobile 1.1.0 Final was just released and promises: True fixed toolbars: Lightweight, CSS-based
jQuery code: function ajaxsubmit(){ $.ajax({ url: /update, type: POST, dataType: html }).success(function(data) { $('#result').html(data);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.