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 8457381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:47:34+00:00 2026-06-10T12:47:34+00:00

I am trying to make an interactive graph out of an svg with paths

  • 0

I am trying to make an interactive graph out of an svg with paths for edges and circles for nodes. To find children of a node I want to be able to search edges for ids with a certain regex since the ids are all of the form: “node1_id node2_id”. I’ve tried a number of solutions, including dollar dollar notation and placing regex directly into a find element by id, but I’ve had no luck. I can’t find anything else that answers this and I’m pretty new to front-end dealings so I’m not sure if this might be something specific to svg or not.

$$('path[id^="\b10020 ([\d]+)"')
Error: SYNTAX_ERR: DOM Exception 12

document.getElementById("\b10020 ([\d]+)")
null

Are probably the two most sensible attempts I’ve made. all edges with node1_id being 10020 in this case.

<path fill="none" stroke-width="1.0"
              d="M -1026.321777,958.875610 C -987.123413,912.258789 -858.400574,901.130981 -811.783752,940.329346"
              id="10020 12050" stroke-opacity="1.0" stroke="#7dcb3c"/>

Being an example of one such edge that should have returned a match.

  • 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-10T12:47:35+00:00Added an answer on June 10, 2026 at 12:47 pm

    Were I doing it, I would change the markup to:

    <path fill="none" stroke-width="1.0"
          d="M -1026.321777,958.875610 C -987.123413,912.258789 -858.400574,901.130981 -811.783752,940.329346"
          data-node-1="10020" data-node-2="12050" stroke-opacity="1.0" stroke="#7dcb3c"/>
    

    Then using “single dollar notation” (aka, jQuery):

    $('path[data-node-1="10020"]')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make an interactive shell script in Perl. The only user
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
I am trying to make a non interactive display for a real estate shop
I'm trying to find/make an algorithm to compute the intersection (a new filled object)
I am trying to make an interactive, text-based connect4 game in SWI Prolog, and
I'm trying to make an exe in Windows out of python I developed in
Hey all, I'm am trying to make a very interactive UI with lots of
Im trying to make a simple interactive flash animation so when you roll over
I'm trying make a login window where a user is prompted to enter their
I'm trying make an entity with doctrine that has three associations with other entities

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.