Top "Selection" questions

Selection is also the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding.

window.getSelection() gives me the selected text, but I want the HTML

I'm extending a WYSIWYG HTML editor (for Firefox), I want to add tags around a selection. I can't find a …

javascript html dom selection
manual language selection in an iOS-App (iPhone and iPad)

My question: How can my iPhone-app tell the iOS, that the user did select a language in the apps preferences, …

ios localization selection appsettings
android: smoothScrollToPosition() not working correctly

I'm trying to smoothly scroll to last element of a list after adding an element to the arrayadapter associated with …

android listview selection android-arrayadapter smooth-scrolling
JavaScript eyedropper (tell color of pixel under mouse cursor)

I am looking for an "eyedropper" tool, that gives me the hex value of the pixel the mouse cursor is …

javascript jquery colors selection color-picker
How to bind multiple selection of listview to viewmodel?

I am implementing a listview, and a button next to it. I have to be able that when i select …

wpf mvvm selection
Java check if two rectangles overlap at any point

I have multiple rectangles and one special rectangle: the selection rect. I want to check for each rectangle if the …

java math selection shapes contain
Understanding "median of medians" algorithm

I want to understand "median of medians" algorithm on the following example: We have 45 distinct numbers divided into 9 group with 5 …

algorithm selection median-of-medians
How to change ListBox selection background color?

It seems to use default color from Windows settings which is blue by default. Let's say I want to change …

c# winforms listbox background selection
Highlight text range using JavaScript

I would like to highlight (apply css to) a certain text range, denoted by its start and end position. This …

javascript selection textrange
Select2 deselect all values

I want to deselect all values with one click without using each id seperately. I fiddled around for a while, …

javascript jquery html selection jquery-select2