prototype.jsで特定要素を配列で取得する
June 4th, 2009
No comments
//全ての画像要素
images = $$("img");
alert(images[0].src);
//id、classで絞込み
field = $$('div#loginForm .field input');
alert(field[0].value);
//全ての画像要素
images = $$("img");
alert(images[0].src);
//id、classで絞込み
field = $$('div#loginForm .field input');
alert(field[0].value);