Jump to content

checkbox and paginate page


Recommended Posts

Hi everyone,

I'm trying to create the look like "paginate data page", but it is not. I set up the file to insert in website by iframe, but I need to find a way to make clicked data like click the checkbox, then click on next, go to next file in iframe, then come back, stay checked in checkbox. Do you understand what I mean? I'm not fluent in English, my prime is American Sign Language.

Link to comment
Share on other sites

I used session storage, seem it doesn't work. I use localstorage, seem it works a little, but stayed checked on checkbox has not work. here code I get from other website, but seem function is not right

    function onClickBox() {
        let checked = $("#box").is(":checked");
        localStorage.setItem("checked", checked);
	        $("#msg").text("Checkbox is checked: " + $("#box").is(":checked"));
	    function onReady() {
	        let checked = "true" === localStorage.getItem("checked");
        $("msg").prop('checked', checked);
    <div id="msg"></div>
    <tr><th colspan="3">Spatial Verbs</th></tr>
        <td><input class="single-count" type="checkbox" id="box" name="chkboxGrp0[]" value="1"></td>
        <td class="vert-middle">0</td></tr>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...