I want use checkbox's value, but I have a problem. I am not submitting the form, using AJAX records are changing. When I click checkbox, courses checkbox value changes, and if I uncheck checkbox the courses combobox will be same as before. My page have pagination, now I have problem, when I click pagination my combobox's value will be same as before and no. of records donot reflect expect of first-page. I want to preserve checkbox's value just like $_POST and $_REQUEST.
Refer images below.
abhi10kumar
0
Junior Poster
Recommended Answers
Jump to PostI think that your safest bet is to set an onclick handler to those page number links, without removing the href attribute, something like this:
<a href="?page=2" onclick="location='?page=2&option='+option.checked;return false">2</a>
In PHP, you than have $_GET. Make the var 'option' in javascript the input element.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.