Top "Selection" questions

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

How can I get the DOM element which contains the current selection?

You can select a part of a web page with the mouse. I know that I can get the currently …

javascript html dom selection
Initial ng-model value not set in select

I have an enum (I code using TypeScript): export enum AddressType { NotSet = 0, Home = 1, Work = 2, Headquarters = 3, Custom = -1, } Then in my …

angularjs selection option
JavaScript Drag & Select functionality done right

I'm trying to write a drag & select functionality using HTML & JavaScript. By that I mean that there will …

javascript jquery jquery-ui selection drag
How To Wrap / Surround Highlighted Text With An Element

I want to wrap a selected text in a div container with span, is it possible? A user will select …

javascript dom selection
Click and drag selection box in WPF

Is it possible to implement mouse click and drag selection box in WPF. Should it be done through simply drawing …

c# wpf mouse selection drag
Select range in contenteditable div

I've got a contenteditable div and a few paragraphs in it. Here's my code: <!DOCTYPE HTML> <html&…

javascript selection range
Styling the selection color of an input type=text, possible?

Having an input <input type="text" id="myTest" value="bla bla bla"/> and doing this (using jQuery) $('#…

jquery html css selection
How to select an ListView item after long click?

I've got a silly little problem. I've registered a ListFragment both as OnItemClickListener and OnItemLongClickListener of its own ListView. When …

android android-listview selection onitemclicklistener contextual-action-bar
Android Spinner selection

The OnItemSelectedListener event handler gets called both when a spinner selection is changed programmatically, and when a user physically clicks …

android selection spinner
remember after refresh selected row in extjs grid

I have a problem. I use extjs grid. This grid will be refreshed every seconds. I refresh with this function: …

extjs grid refresh row selection