ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Toggle select all not working
Title:
B
I
{code}
?
var ot = $('#' + OwnedType).parent(); ot.find(':checkbox').prop('checked', !ot.find(':checkbox').first().prop('checked')).change(); I am trying to implement ToggleSelectAll function using the script above, but in my case I am persisting the checked values on page, my checkboxes are on page 1 and after navigating away and coming back to page 1, my checkboxes are checked as persisted. Problem is now when I click on toggle select all button, the unchecked checkboxes get checked and checked boxes are unchecked. I want to keep them also as checked. How to achieve that ?
Save Changes
Cancel
SalesARM
asked at 18 Apr 2019
we have a demo for toggle select all here: https://demo.aspnetawesome.com/AjaxCheckboxListDemo#Toggle-select-all
at 18 Apr 2019
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK