Questions tagged [selectall]
219 questions
272
votes
31 answers
How to implement "select all" check box in HTML?
I have an HTML page with multiple checkboxes.
I need one more checkbox by the name "select all". When I select this checkbox all checkboxes in the HTML page must be selected. How can I do this?

user48094
- 10,481
- 12
- 36
- 30
41
votes
1 answer
How to select multiple selectors with selectAll?
Is it possible to select multiple selectors in D3 using selectAll?
I want something like svg.selectAll("class1", "circle", "id2") to select all circle elements, class1 elements and id2 elements.
Is this possible?

vibekeNYG
- 471
- 1
- 5
- 13
39
votes
2 answers
How to use D3 selectAll with multiple class names
I'm experimenting with using multiple class names for SVG elements so that (hopefully) I could select a subset of them using selectAll and "parts" of the class name. Unfortunately nothing I've tried works and I haven't found an example online. The…

Bill Doss
- 601
- 1
- 6
- 13
32
votes
4 answers
d3 selectAll: count results
How do I count how many nodes were matched by a selectAll? (without joined data)
Or if there's data, how to count the data from the selection? (suppose I've set it with "data(function...)" so I don't know the length in advance)

Victor Basso
- 5,556
- 5
- 42
- 60
25
votes
3 answers
How can I select all the text within a Windows Forms textbox?
I want to select all the text that is with in text box.
I've tried this using the code below:
textBoxResults.SelectionStart = 0;
textBoxResults.SelectionLength = textBoxResults.Text.Length;
Source: I got this code from here…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
24
votes
4 answers
How to press Ctrl+A to select all content in a page by Selenium WebDriver using Java
I want to select all content by pressing Ctrl+a from keyboard by using WebDriver with Java. I wrote the following code:
Actions actionObj = new Actions(driver);
actionObj.keyDown(Keys.CONTROL)
.sendKeys(Keys.chord("A"))
…

Ripon Al Wasim
- 36,924
- 42
- 155
- 176
15
votes
2 answers
WPF Listbox and Select All
I want to create a simple ListBox and have SelectAll as a context menu item. However it seems that ListBox has some sort of inbuilt handling for SelectAll that I can't get working, but is interfering with my attempt to implement SelectAll.
My entire…

Ray
- 45,695
- 27
- 126
- 169
12
votes
2 answers
Bootstrap multiselect select all checked by default
i use bootstrap-multiselect (v0.9.8) with option
includeSelectAllOption: true
it is posible that select all to be checked by default when page is loaded?
thx.

zmeul
- 351
- 1
- 4
- 13
12
votes
3 answers
UITextView selectAll method not working as expected
I'm creating an iOS 8 app with Xcode 6.0.1 for my iPhone 5 (which has iOS 8.0.2 on it). I want to make it so that when a user clicks on my UITextView, all the text gets selected so he can easily start typing and erase what was there (but I don't…

Ethan G
- 1,353
- 2
- 15
- 31
11
votes
2 answers
D3 selectAll multiple classes AND or OR
I am trying to select two classes like this,
d3.selectAll(".class1.class2")
but this appears to select an element with both class1 AND class2. How do I select an element by class with class1 OR class2 but the classes need not be mutually exclusive,…

Shane G
- 3,129
- 10
- 43
- 85
9
votes
2 answers
selectall uitextfield does not always select all
- (void)textFieldDidBeginEditing:(UITextField *)textField {
[textField selectAll:self];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[textField resignFirstResponder];
return YES;
}
In the above, the textField selects…

shiggity
- 531
- 4
- 12
7
votes
7 answers
UISearchBar select all text
Is there any way to select all text in UISearchBar?
I tried [searchBar selectALL:], but it throw the signal (unrecognized selector).
I want to allow user to alter previous search text. At the some time, when user just starts typing new request, the…

Mike Keskinov
- 11,614
- 6
- 59
- 87
7
votes
1 answer
contentEditable + selectAll: Firefox won't allow keyboard input on dynamically generated content
I'm having a problem in Firefox (other browsers seem to work fine) with dynamically generated elements containing a contenteditable="true" attribute:
If I selectAll (either dynamically, or with my mouse), Firefox won't allow keyboard input.
Please…

Josiah
- 1,117
- 5
- 22
- 35
6
votes
1 answer
When using d3.js why must I call selectAll after select when appending new elements to an entry selection?
Suppose we have a svg element with no child nodes:
Suppose we also have an array of data:
var data = [10,20,30,40,50];
This code properly append new rect elements to the svg element.
…

eric.mcgregor
- 3,507
- 2
- 16
- 16
6
votes
3 answers
Angular Material Input Select All on Click?
Pretty straight-forward question. When I click on an input field I want to select-all the text so when I start typing it over-writes what was previously there. Anyone know how to do this?

Jus10
- 14,519
- 21
- 52
- 77