I have two HTML elements: 1). the div element is a multiple select and 2). a button that triggers onclick event. On the JS side, there is the global variable \'prev_selection\'