Relative Content

Tag Archive for javascriptradio-button

How can I save radio button values to local file for a video gallery?

I’m building a video gallery which spans over 15 pages so far. My pages consists of a thumb for each video clip. Each page contains between 200 to 300 thumbs. When the thumb it selected, it opens a modal with pic, description & play button to view video. I’m using a star rating module called StarRate which gives each thumb a set of 5 stars to rate the video. Each star is a radio button which you can select to give each thumb the desired rating. All works as intended, but I need ability to load the values of the radio buttons when the page loads from a local file. I also need it to save all values whenever a rating is changed, overwriting the original file so it will be updated when the page is opened later. This runs on local machine and isn’t on a server and only runs locally, so I have no database available to store and retrieve the values. I am a beginner so any help you can provide would be greatly appreciated 🙂