I have a switch value (r1) and I'm trying to use:
$ ("input: radio [val = r1]"). attr ('checked', true);
to check it out.
The fact is that I have three switches in the div, when I check one, the value of the saved button is saved.
When I reload the page, I want the page to check the switch that was last selected.
Thank!
Noor source
share