reportingbuzz
MIS
Hi,
This small example uses Northwind database to show the 2 sets of data in the select box - CategoryID, CategoryName.
My question is, how can I seperate the two to make it look more like 2 columns side by side? Do I dump the VBScript array into the Javascript array? Do I build the select control using the Javascript array? How can I go about doing this?
Thanks.
This small example uses Northwind database to show the 2 sets of data in the select box - CategoryID, CategoryName.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN" "[URL unfurl="true"]HTTP://W3.ORG/TR/HTML4/LOOSE.DTD">[/URL]
<HTML>
<HEAD>
<SCRIPT>
</SCRIPT>
</HEAD>
<TITLE>Multi-column ListBox</TITLE>
<body onLoad="attachSmartSelect();">
<form name="form1" method="get" action="">
<select name="data" id="data">
<option value=-1>Select Category</option>
<option value="1">1 | Beverages</option>
<option value="2">2 | Condiments</option>
<option value="3">3 | Confections</option>
<option value="4">4 | Dairy Products</option>
<option value="5">5 | Grains/Cereals</option>
<option value="6">6 | Meat/Poultry</option>
<option value="7">7 | Produce</option>
<option value="8">8 | Seafood</option>
</select>
</BODY>
</HTML>
My question is, how can I seperate the two to make it look more like 2 columns side by side? Do I dump the VBScript array into the Javascript array? Do I build the select control using the Javascript array? How can I go about doing this?
Thanks.