View Full Version : Find selected order of a multiple select
12-19-2006, 04:29 PM
Apparently my Google skills are failing. :)
Is there a way to find in which order the selects were selected in a multiple-select select box?
12-19-2006, 06:09 PM
Could you not use the select boxes onChange event to store its index numbers in a hidden textbox?
<select id = "sel1" onchange = "clickOrder()">
<option value = 1>1
<option value = 2>2
<option value = 3>3
<input type = "hidden" id = "hidden1">
var hiddenBox = document.getElementById("hidden1").value
var selValue = document.getElementById("sel1").selectedIndex
Not tested, but is this what you're getting at?
12-19-2006, 07:29 PM
Always making things harder than they need to be.
Yes - this is it.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.