aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html
blob: 22d1a4fba11707f50129cd0bd2978a8ee4d2a4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: selectedIndex
slug: Mozilla/Tech/XUL/Property/selectedIndex
translation_of: Archive/Mozilla/XUL/Property/selectedIndex
---
<div class="noinclude">
 <span class="breadcrumbs XULRefProp_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference" title="XUL_Reference">XUL Reference</a></span></div>
<dl>
 <dt>
  <code><span><a href="https://developer.mozilla.org/zh-CN/docs/XUL/Property/selectedIndex">selectedIndex</a></span></code></dt>
 <dd>
  Type:
  <i>
   integer</i>
 </dd>
 <dd>
  Returns the index of the currently selected item. You may select an item by assigning its index to this property. By assigning <code>-1</code> to this property, all items will be deselected.</dd>
</dl>
<div class="noinclude">
  </div>
<p></p>