- $(svg).find("title").each(function() {
- if ($(this).text() == current_layer_name) {
- $(this).next().attr("fill", "#00ff00");
- }
- });
The question is: how to save the modify into $(svg) ? This returns the list of tags <title>. The svg variable is a xml string.