Your .attr() is wrong. The previous methods already have div selected .attr() can change any attribute, so you need to tell it WHICH “attribute” it should change, as well as with what “value” it should give it.
i want change width of bar class from 25px to 14px then i rewrite code like this
.attr(“width”,“14px”);
I just have learned for 2 hour so I can understand hihi!!!
That won’t work because there is no attribute “width” for div.
Most styling is done via CSS and that is written in the “style” attribute. In this case as inline-CSS.