tags:

views:

1779

answers:

3

i see there is a disabled property on a specific item in the dropdown list but is there an enabled property on the whole html dropdown itself?

any suggestions?

A: 

The dropdown tag is select, IMHO, so you have to work on tag.

mere-teresa
+4  A: 

According to the HTML 4 spec a select element has a disabled attribute.

So

<select disabled>
  <option>Something</option>
</select>

should work

Joey
A: 

may this will help

is same as :

<html>
    <head>
       <script type="text/javascript">
          function makeDisable(){
          var x=document.getElementById("mySelect")
          x.disabled=true
          }
         function makeEnable(){
             var x=document.getElementById("mySelect")
              x.disabled=false
         }</script></head><body><form>
        <select id="mySelect"><option>Apple</option><option>Banana</option>
        <option>Orange</option>
        </select>
        <input type="button" onclick="makeDisable()" value="Disable list">
        <input type="button" onclick="makeEnable()" value="Enable list">
        </form>
        </body>
       </html>
openidsujoy
how would i do this with buttons. i want this to be disable from the initial page load
ooo