This is the index number of the Option object in the options[] collection belonging to the receiving Select object. Note that this index number is only good while the options collection is not modified. Adding new options or deleting options will change the ordering of the collection.
Feedback from several people suggests that in the case of a multiple selection taking place this property returns the index of the first selected item.
See also: | Select.multiple, Select.options[] |
Prev | Home | Next |
Select.remove() | Up | Select.size |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |