blob: 1583c5f526e62ced785ed1dad826dfc0e1632053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
title: selectedItem
slug: Mozilla/Tech/XUL/Property/selectedItem
translation_of: Archive/Mozilla/XUL/Property/selectedItem
---
<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/selectedItem">selectedItem</a></span></code></dt>
<dd>
Type:
<i>
element</i>
</dd>
<dd>
Holds the currently selected item. If no item is currently selected, this value will be <code>null</code>. You can select an item by setting this value. A select event will be sent to the element when it is changed either via this property, the <code><span><a href="https://developer.mozilla.org/zh-CN/docs/XUL/Property/selectedIndex">selectedIndex</a></span></code> property, or changed by the user.</dd>
</dl>
<div class="noinclude">
</div>
<p></p>
|