Item Customer Due Date ---- ------------- ----------- 5 Acme Hardware 10/9/1997 10 Joe's Garage 9/8/1997 85 Another Cust 1/1/1998 201 Even More 10/10/2000
The problem: inside the <OPTION> tags, HTML collapses multiple spaces into to one, yielding an ugly list that looks like this:
Notes: this only works in Netscape, or other browser that allows you to set the font in a <SELECT> list. It does not work under Microsoft's Internet Explorer. For that browser, you will probably have to use an OLE (ActiveX) control, or other Microsoft-specific solution. If you have another idea or a better way, mail me at hin@alma.com.
Do a "view source" on this page to see the JavaScript code that handles this select list:
------- To be replaced ---------
For a database application, the <OPTION> values can be generated as a JavaScript array, which is then used by a generic function to populate the list.