Toggle select all not working
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 ?
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
to leave an answer