Using Form Menus
Two types of form menus exist: drop-down and list. Both are extremely useful and can be modified in numerous ways to suite a range of needs.
One of the most popular means of providing options in forms is the all-familiar drop-down menu. Menus of this sort are especially helpful when you have numerous options, and they are typically seen in standard menus for states, countries, pricing and so on.
Drop-down menus are created by combining your selections with the select and option elements (see Example 5-8).
Example 5-8. A drop-down form menu
<form method="get" action="http://www.myserver.com/cgi-bin/mailscript/"><p>State (U.S. Western Region):</p><select><option value="Arizona">Arizona</option><option value="California">California</option> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access