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 entries in forums with 'comments', which is not very useful. I'm close to write my own "replaceble" pseudo svg path code, but is there an alternative possible in svg? regards, Jeroen.