Selectmenu

New PR for selectmenu, since #492 and #866 got too long.

See also http://wiki.jqueryui.com/w/page/12138056/Selectmenu