Example for answer on http://stackoverflow.com/questions/13437446/how-to-display-selected-item-in-bootstrap-button-dropdown-title/22000328?noredirect=1#comment51687750_22000328
No-Library (pure JS), HTML, CSS, JavaScript