'selectedIndex' Syntax and Note : selectedIndex : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Properties   » [  selectedIndex  ]   
 



'selectedIndex' Syntax and Note

Note:

Read and write property. 
The index of the selected <option> element.
    
Syntax:
    
document.getElementById("selectID").selectedIndex = value
document.all.selectID.selectedIndex = value // IE only

    

      
      
Related examples in the same category
1.  'selectedIndex' Example
2.  'selectedIndex' is applied to
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.