I am creating a SVG Path for my Website. Now I want a input box where i can say for example the strokeWidth should be 10 and when i click the button this value should be used by the Path. Is this possible ? Down below you can see the code of my input Box and the Button to set the Width + the code of my SVG Path. Now I am asking you guys how i can connect them.
<input type="number" placeholder="StrokeWidth" id="WidthBox"></input>
<input type="button" name="setStroke" id="setStroke" value="set Stroke"></input>
var L_PUF_WAR = s.path("m 338.57052,275.31046 v 110.41789 h 95.11902 v 39.24491"
.attr({
fill: "none",
stroke: "#bada55",
strokeWidth: 15
});