「エレメントの子ノードリストを取得」サンプルコード <html> <head> <title>element.childNodes - エレメントの子ノードリストを取得</title> </head> <body> <!--エレメントの子ノードリストを取得のサンプル--> <div id="parent" class="daddy"> <div id="sample"><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span></div> </div> <script type="text/javascript"> function findElement() { var element = document.getElementById("sample"); var childs = element.chi
FireFox3になってから、getElementsByClassNameがNativeSupportされたので、I.Eとの互換性がメンドイよねっていう話。 とりあえず、 <body bgcolor="#cccccc"> <ul> <li class="b">bbb</li> </ul> <ul id="hoge"> <li class="a">1</li> <li class="b">2</li> <li class="c">3</li> <li class="d">4</li> <li class="e">5</li> </ul> </body> っていうHTMLがあった場合、 $('hoge').getElementsByClassName は、IE/FFどちらでもちゃんとFunctionとして定義される。それは、$関数が最後にElementをElement.extend(eleme
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く