アプリ版:「スタンプのみでお礼する」機能のリリースについて

http://javascriptist.net/ref/element.select.opti …
のサイトのサンプルコードの24行目にある
for (var i=0;i<element.options.length;i++) {
の部分に、element.options.lengthがあります。
これは、が入るのでしょうか。
<select>
<option></option>
<option></option>
</select>
の場合はelement.options.lengthが2に
<select>
<option></option>
<option></option>
<option></option>
<option></option>
</select>
の場合はelement.options.lengthが4に
<select>
<option></option>
</select>
の場合はelement.options.lengthが1に
というようにelement.options.lengthは
<select>の<option>の合計数を常に表しているのでしょうか。

A 回答 (1件)

    • good
    • 0
この回答へのお礼

有難うございます。

お礼日時:2011/10/31 09:13

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!