Hello,
I would like to know if you can select a class / element from a partially informed value, for example:
<div class="chart-piso c100 p100 orange big">
<span id="percPiso">100%</span>
<div class="slice">
<div class="bar"></div>
<div class="fill"></div>
</div>
</div>
I would like to select the elements only by stating that the classes contain p
before the numbers because those numbers are variable.
I tried to select them as follows and I know it's super wrong too haha:
$("div[class*='chart-']").removeClass(div[class*='p']);
Any suggestions?
Thank you!