move multiple option in select with jQuery

I look for this everywhere: how to move multiple option inside a select function upfield() { var el = $(‘#selectedfield’).children(‘[@selected]:first’).prev(); $(“#selectedfield”) .children(‘[@selected]’) .each(function(){ $(this).insertBefore(el); }); } function downfield() { var el = $(‘#selectedfield’).children(‘[@selected]:last’).next(); $(“#selectedfield”) .children(‘[@selected]’) .each(function(){ $(this).insertAfter(el); el = $(el).next(); }); }

Simulare eventi dell’interfaccia

void CMyAppView::SignalImageStored() { TKeyEvent aKeyEvent; TEventCode aType; aKeyEvent.iCode = EKeyMenu; aKeyEvent.iScanCode = EStdKeyMenu; aType = EEventKey; iCoeEnv->SimulateKeyEventL(aKeyEvent, aType); } iCoeEnv is a member of CAknView class, this is useful to open menu automatically, maybe after a laps of time. … and this cause only menu event, not the corresponding key be pressed when menu is […]