In the html code, i put a <p>
element with the number. I want that every digit from that number to be in a span element (I must style every digit different).
I put the link with code I wrote and I need some help from you guys. I'm at the situation where I put all digits in a different <span>
but further I don't know how concatenate.
Example: I have number 2172 and in the final it should be <span>2</span><span>1</span><span>7</span><span>2</span>
Sorry if I'm not too precise with my problem.
Here is what I tried to do.
Thanks in advance for your help!