question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding "Select All" and "De Select All"

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
patosaicommented, Apr 13, 2016

Ok I can see it being useful. Hang on.

0reactions
patosaicommented, Apr 15, 2016

You can modify the source yourself for the bootstrap buttons. I think having the text as an option is a good idea.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found