comments in svg path

Posted by dr jerry on Stack Overflow See other posts from Stack Overflow or by dr jerry
Published on 2010-04-04T11:19:00Z Indexed on 2010/04/04 11:23 UTC
Read the original article Hit count: 213

Filed under:

I'm experimenting with jquery and svg, I make up my path but now I want to change that (based on some user input) I do something like

    var dpath = $('path').attr("d");
    $('path').attr("d",dpath.replace("150 150", "450 450"));

which works fine, but this not useful when my path grows, so I wonder is there a possibility to put a label or a comment in the path to serve as a replace hook? searching for svg path comments gives me all. I'm close to write my own "replaceble" pseudo svg path code, but is there an alternative possible in svg? regards, Jeroen.

© Stack Overflow or respective owner

Related posts about svg