Difference between revisions of "Template:Dropdown"

From UMaine SECS Numerical Modeling Laboratory
Jump to: navigation, search
Line 4: Line 4:
 
</div>
 
</div>
  
<htmltag tagname="a" href="http://en.wikipedia.org/wiki/Antarctica" class="my-links">Read about Antarctica</htmltag>
+
<htmltag tagname="input" list="browsers" name="browser">
 
+
  <htmltag tagname="datalist" id="browsers"
<htmltag tagname="input" list="browsers" name="browser"></htmltag>
+
    <htmltag tagname="option" value="Internet Explorer"></htmltag>
 +
    <htmltag tagname="option" value="Firefox"></htmltag>
 +
    <htmltag tagname="option" value="Chrome"></htmltag>
 +
    <htmltag tagname="option" value="Opera"></htmltag>
 +
    <htmltag tagname="option" value="Safari"></htmltag>
 +
  </htmltag>
 +
</htmltag>
  
 
<form action="/action_page.php">
 
<form action="/action_page.php">

Revision as of 18:18, 20 February 2019

Click the button to create an INPUT field, a DATALIST element and an OPTION element.

<htmltag tagname="input" list="browsers" name="browser">

 <htmltag tagname="datalist" id="browsers"
   <htmltag tagname="option" value="Internet Explorer"></htmltag>
   <htmltag tagname="option" value="Firefox"></htmltag>
   <htmltag tagname="option" value="Chrome"></htmltag>
   <htmltag tagname="option" value="Opera"></htmltag>
   <htmltag tagname="option" value="Safari"></htmltag>
 </htmltag>

</htmltag>

<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>