I have a span with some text that changes every time the user clics a button. I need the color of it to change with every clic (I have the colors in an array like this: var colorArray = ["red","blue","red","red","green","blue","green","red"])
The array is not fixed as I read it from DB.
Any idea on how to do this via javascript (it's for a phonegap project)