Hello…
I was wondering.. if there is a way to have two “selects” that, when you scroll one, would scroll the other one… as if bound together…
i have this:
[CODE]
<html>
<head>
<script>
function changeToIndex(selIndex){
document.getElementById(‘sel1’).options[selIndex].selected=true;
document.getElementById(‘sel2’).options[selIndex].selected=true;
}
</script>
</head>
<body>
<select id=”sel1″ size=”3″ onclick=”changeToIndex(this.selectedIndex)”>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select>
<select id=”sel2″ size=”3″ onclick=”changeToIndex(this.selectedIndex)”>
<option>Leon</option>
<option>Rodrigo</option>
<option>Ana</option>
<option>Jose</option>
<option>Marco</option>
<option>Luis</option>
</select>
</body>
</html>
which is simply to have the same selected index on both at the same time…
but is there a way to have them show the same items (index-wise speaking) on both?
thanks in advance.. i hope im clear ?