ivaynberg/select2 — pull request #1519 by jdecuyper (2013-07-11 16:34:49+00:00)
Title: Add option to display the selected value inside the searchbox

In some case the user may want to easily copy & paste the value from select2 to another program or may want to start a new search and use the current value as a starting point.

If the option `showCurrentValue` is defined as `true` and the user clicks on the select2 control, the currently
selected value will be displayed. If there are no selected value then the searchbox remains empty (default behavior). If a placeholder is specified is not treated as the currently selected value. This change only affects the select2 control of type 'single'.

For instance:

```javascript
$("#e1").select2({showCurrentValue: true});
```

A demo is also available [on my blog](http://jdecuyper.github.io/select2/index.html#DisplayCurrentValueAndAllowItemRepetition).