Difference between revisions of "Test verca 5"

From wiki
Jump to navigation Jump to search
(Created page with "<div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="t...")
 
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="dropdown">
+
<form action="/action_page.php">
    <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
+
  <label for="cars">Choose a car:</label>
    Dropdown button
+
  <select name="cars" id="cars">
    </button>
+
    <option value="volvo">Volvo</option>
     <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
+
     <option value="saab">Saab</option>
        <a class="dropdown-item" href="#">Action 1</a>
+
    <option value="opel">Opel</option>
        <a class="dropdown-item" href="#">Action 2</a>
+
    <option value="audi">Audi</option>
        <a class="dropdown-item" href="#">Action 3</a>
+
  </select>
    </div>
+
  <br><br>
</div>
+
  <input type="submit" value="Submit">
 +
</form>

Latest revision as of 10:59, 10 June 2022

<form action="/action_page.php">

 <label for="cars">Choose a car:</label>
 <select name="cars" id="cars">
   <option value="volvo">Volvo</option>
   <option value="saab">Saab</option>
   <option value="opel">Opel</option>
   <option value="audi">Audi</option>
 </select>
 

<input type="submit" value="Submit">

</form>