"Mark Twain" <tw***@whitehouse.gov> wrote in message
news:1130504996.8872205f0eb5b2e0e763e7e041bc8757@t eranews...
In article <Dv********************@comcast.com>,
"McKirahan" <Ne**@McKirahan.com> wrote:
"Meister" <rk******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com... Thnaks a ton. That was precisely what I was looking for...... infact,
I was looking for soem pointers, but you provided the solution. Is there
a way to star a solution?
Thanks McKirahan
What do you mean by: "Is there a way to star a solution?"?
Are asking about the "two selections lists" approach?
I'm going out on a limb here, but I think he's asking if there is a way
to highlight a solution on Usenet. The answer, of course, is no.
I thought that might be what's meant but here's the other approach....
<html>
<head>
<title>3rank.htm</title>
<script type="text/javascript">
var opti;
function rank(what) {
var form = document.form1;
if (what == 0) {
form.s1.options[0] = new Option("One", 1);
form.s1.options[1] = new Option("Two", 2);
form.s1.options[2] = new Option("Three", 3);
form.s2.options[2] = null;
form.s2.options[1] = null;
form.s2.options[0] = null;
opti = 0;
} else {
var indx = form.s1.selectedIndex;
if (indx < 0) return;
var text = form.s1.options[indx].text;
var valu = form.s1.options[indx].value;
form.s1.options[indx] = null;
form.s2.options[opti++] = new Option(text, valu);
}
}
</script>
<style type="text/css">
..sel1 { width:80px }
..sel2 { width:80px; background:#EFEFEF }
</style>
</head>
<body onload="rank(0)">
<form action="" method="get" name="form1">
<select name="s1" id="s1" size="3" class="sel1" onclick="rank(1)">
</select>
<select name="s2" id="s2" size="3" class="sel2" disabled>
</select>
<input type="button" value="Reset" onclick="rank(0)">
</form>
</body>
</html>