Questions tagged [selectall]

208 questions
242
votes
30 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
  • 9,623
  • 11
  • 34
  • 29
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
38
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
  • 591
  • 1
  • 5
  • 13
30
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)
Vituel
  • 4,708
  • 5
  • 37
  • 52
21
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
  • 1,055
  • 124
  • 399
  • 759
21
votes
2 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
  • 34,088
  • 37
  • 146
  • 165
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
  • 43,353
  • 23
  • 121
  • 168
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,293
  • 2
  • 14
  • 27
10
votes
2 answers

Boostrap 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.
7MEU
  • 161
  • 1
  • 2
  • 10
8
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
  • 2,379
  • 5
  • 31
  • 64
8
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
  • 501
  • 4
  • 12
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
  • 997
  • 5
  • 18
  • 35
6
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
  • 10,359
  • 5
  • 53
  • 73
5
votes
4 answers

select all checkboxes with angular JS

I am trying to select all checkboxes with one single checkbox. But how to do that? This is my HTML: