[Solved] How can I create a star based feedback system for a website?
You could try something like this: In your HTML page, pass arrays containing strings to the Javascript change() function based on which stars should be changed. For example: <img src=”https://stackoverflow.com/questions/28414185/star.png” width=”20px” height=”20px” id=”1″ onclick=”change([‘1’]);”> <img src=”https://stackoverflow.com/questions/28414185/star.png” width=”20px” height=”20px” id=”2″ onclick=”change([‘1’, ‘2’]);”> <img src=”https://stackoverflow.com/questions/28414185/star.png” width=”20px” height=”20px” id=”3″ onclick=”change([‘1’, ‘2’, ‘3’]);”> <img src=”https://stackoverflow.com/questions/28414185/star.png” width=”20px” height=”20px” id=”4″ onclick=”change([‘1’, … Read more