HTML dropdown element

    0

    0

    The code selects an option from a drop-down list by using a query string. The value attribute sets the option’s value. The required attribute tells the browser that this select box is required, and the option attribute sets the option’s text.

    <select required>
      <option value="">Select an option</option>
      <option value="yes">Yes</option>
      <option value="no">No</option>
      </select>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.