|
JavaScript ComboBox This page describes a simple JavaScript ComboBox which works with IE (version 7.x) and Firefox (version 2.x). It is useful because the standard HTML select box doesn't allow the options to be edited. Using the ComboBox A <select> box with an overlapping <input type=text> box
are used to
simulate a ComboBox. The ComboBox saves and restores its state using cookies. Obtain and save the JavaScript
ComboBox source code by clicking the following link
comboBox.js. Include and
use the ComboBox as follows: <body> Note that instead of using ComboBox.Factoy(...), the following, more direct, alternative may be used: <script language="JavaScript"> ComboBox Style 1 Examples Conclusion Feel free to use this JavaScript ComboBox as you see fit. Please let me know if you make use of this code, especially if you make improvements or fix bugs. |
| mailto:jones@scss.tcd.ie | last updated: 24 September 2007 |