Adding "Select All" and "De Select All"
See original GitHub issueIt would be really helpful to have methods to be able to select all and select none. I tried to achieve this (see below hacky code), but the information doesn’t seem to be saved:
$(“#btnSelectAll”).on(‘click’,function() {
event.preventDefault();
$(“#PromptPanel1_treeviewCommentCodes > option”).each(function(){
$(this).attr(‘selected’,‘selected’);
});
$(“.tree-multiselect input”).each(function(){
$(this).attr(‘checked’,‘checked’);
});
});
$("#btnDeSelectAll").on('click',function() {
event.preventDefault();
$("#PromptPanel1_treeviewCommentCodes > option").removeAttr("selected");
$(".tree-multiselect input:checked").removeAttr("checked");
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Select All/Deselect All checkboxes in a page - Stack Overflow
I have found an issue with iWasRobbed's Answer that if Select All is checked and then if you ...
Read more >How can I add <Select All> and <Deselect All> option - MSDN
I have created an html page , Here I want to bring an individual row selection , also <Select All > <Deselect All...
Read more >Select all and deselect all choices | Help - Zoho DRE
The selectAll deluge task preselects all choices in a specified multi-select or a lookup field(multi select or checkbox display). The deselectAll deluge task ......
Read more >How to Select and Deselect All Options in Select Box - Webkul
Select All and unselect all multiple options using jQuery · When you click on the Select All button then all the options will...
Read more >Adding a Select All or Cancel All check-box column to tables
Click the Down arrow. Select True. Right-click the form, and select Save. In a browser, the table now contains a check-box column, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I can see it being useful. Hang on.
You can modify the source yourself for the bootstrap buttons. I think having the text as an option is a good idea.