You can manually save and revert the value, jsfiddle here.
Add a data attribute to your select element:
... data-prev-selected="1" ...
Use this code for the change event:
var someCondition = true; // hardcoded for now // Undo new selection if ( someCondition ) { var prevIdx = $('select#speedA').attr('data-prev-selected'); $('select#speedA').selectmenu("index", prevIdx); return; } // Save new index var idx = $('select#speedA').selectmenu("index"); $('select#speedA').data('data-prev-selected', idx);