Speed up development with full-stack environments for every branch.

Learn More

how to select option value using jquery

569 Runs 2444 Views 595 Copies
Saved

Saved

dipesh.parmar 55

dipesh.parmar
published 4 years ago

    <html> 
      <head>
        <!-- Load jQuery from Google's CDN -->
        <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
        <!-- Source our javascript file with the jQUERY code -->
        <script src="script.js"></script>
      </head>
      <body>
        
        <select id="opts">
          <option value="DEFAULT">Default</option>
          <option value="SEL1">Selection 1</option>
          <option value="SEL2">Selection 2</option>
        </select>
        
      </body>
    </html>
    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).