10.4. Select boxes and their applications
10.4.1. The DOM interface for select box
The next DOM interface that we want to talk about is the select box interface. It can be used to access a select box. Select box, sometimes called combo box, is defined in HTML/XHTML specifications as an independent element. To generate a select box, the <select> element is used. A typical example to generate a select box is shown in ex10-08.htm.
Example. ex10–08.htm – Generating A Select Box
1: <?xml version="1.0" encoding="iso-8859–1"?> 2: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5: <style> 6: .selSt{width:280px;height:35px;background:#aaffaa; ... |
Get Practical Web Technologies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.