Open In App
Related Articles

HTML <select> disabled Attribute

Improve Article
Save Article
Like Article

The disabled attribute for <select> element in HTML is used to specify that the select element is disabled. A disabled drop-down list is un-clickable and unusable. It is a boolean attribute. 


<select disabled>option values...</select>



<!DOCTYPE html>
        <title>HTML select disabled Attribute</title>
    <body style = "text-align:center">   
        <h1 style = "color: green;">GeeksforGeeks</h1>
        <h2>HTML select disabled Attribute</h2>
        <p>This select field is disabled.</p>
        <!--A disabled select-->
        <select disabled>
            <option value="binary">Binary Search</option>
            <option value="linear">Linear Search</option>
            <option value="interpolation">Interpolation Search</option>



Supported Browsers: The browser supported by <select> disabled attribute are listed below:

  • Apple Safari
  • Google Chrome
  • Edge 12 and above
  • Firefox 1 and above
  • Opera
  • Internet Explorer
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 28 Jul, 2022
Like Article
Save Article
Similar Reads
Related Tutorials