• St0nee

    (@st0nee)


    Hi,

    I have a few checkboxes like this:

    <input type="checkbox" id="1" name="regions[]" value="north-east" />North East<br />
    <input type="checkbox" id="2" name="regions[]" value="north-west" />North West<br />
    <input type="checkbox" id="5" name="regions[]" value="south-east" />South East<br />
    <input type="checkbox" id="6" name="regions[]" value="south-west" />South West<br />
    <input type="submit" name="selectionsSubmit" value="Submit" />

    I cannot change names nor the values of these checkboxes.
    How should I make that when user presses submit button all the checked boxes would be remembered and shown after refresh and saved until the user closes the site ?

    Any ideas would be very helpful, because I have to idea what to do,
    I suppose that HTML5 sessionStorage could be of use, but I cannot seem to make it work.. ;/

The topic ‘Remembering checked checkboxes’ is closed to new replies.