Difference between revisions of "Template:Dropdown"
Line 5: | Line 5: | ||
<form id='dropdown'></form> | <form id='dropdown'></form> | ||
+ | |||
+ | <form action="/action_page.php"> | ||
+ | <input list="browsers" name="browser"> | ||
+ | <datalist id="browsers"> | ||
+ | <option value="Internet Explorer"> | ||
+ | <option value="Firefox"> | ||
+ | <option value="Chrome"> | ||
+ | <option value="Opera"> | ||
+ | <option value="Safari"> | ||
+ | </datalist> | ||
+ | <input type="submit"> | ||
+ | </form> |
Revision as of 22:22, 19 February 2019
Click the button to create an INPUT field, a DATALIST element and an OPTION element.
<form id='dropdown'></form>
<form action="/action_page.php">
<input list="browsers" name="browser"> <datalist id="browsers"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Chrome"> <option value="Opera"> <option value="Safari"> </datalist> <input type="submit">
</form>