I want to increase the stroke width of a svg image by 0.5 when the user clicks on a button. I have the click function already, but not sure how to get the function to work to increase the stroke width.
function pipeScaleFactorPlus(){
$(".pipe").style("stroke-width", "+=0.5");
drawMapPipes();
}
.pipe is the svg class and the drawMapPipes(); is called to redraw the svg image.
style()
function. Are you using some other plugin that adds that function? – Paul LeBeau