I am currently making an Jeopardy game on the topic of HTML using jQuery. Right now it works well, but I want to add a recent saved scores tag using cookies. I don’t know how to achieve this.
I know cookies but I don’t know how I will get the name and score and then save it.
I want to do something like this:
Recent Saved Scores
{NAME HERE}….{Score HERE}
{NAME HERE}….{Score HERE}
{NAME HERE}….{Score HERE}
And it’s supposed to save.
Here’s a link to my game: http://redirectme.yolasite.com/resources/jeopardy.html
I would suggest to use something like jstorage
It uses localStorage or cookies if localStorage is not available.