U
U
Uzair Izha2015-10-21 21:49:27
JavaScript
Uzair Izha, 2015-10-21 21:49:27

How to save what was clicked (radio selection) when reloading the page?

In general, an example of how onclick works

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav Startsev, 2015-10-21
@esvlad

write to cookies or localStorage
htmlbook.ru/html5/storage

I
Ilyusha Prokopiev, 2015-10-21
@iliapro

Choice 2: either cookies or GET, if this is what the user chooses, then for sure there is nothing to hide, which means that you can use GET, but then you have to check the input data - yes, it’s always better to check them for safety - the more cookies will look finer so take your pick

F
Foo Bar, 2015-10-21
@atomheart

Use cookies, namely, when changing the states of the control, save its states in browser cookies.
Or look for ready-made libraries that do the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question