Skip to content

InnerHTML doesn’t work with if condition in regExp [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 10 …

Javascript classList.add to element with 0px height

Not sure if I’m missing something obvious here, but I’m trying to add a class to an element that has 0px height to begin with. On click, the class .show is added and the .hidden class is removed. But it doesn’t work if the .hidden class has 0px assigned to it. Answer The problem is that if y…

How to hide radar chart index labels (chart.js)

I’m trying to make a radar chart with a dark background. White index labels distract from the chart itself. (my chart) I found a thread that raised a question about customizing index labels, but the code in the answer only works with version 2.1.3 or mb close to it. Is it possible in chart.js@3.5.1? Ans…