Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下のコードは、に関連付けられたJQuery関数を含むJQueryオブジェクトを示しています。
var element = $("#element");
しかし、どうすれば上記のJQueryオブジェクトからHTML DOM要素を取得できますか?
jQueryオブジェクトから最初のアイテムを取得します
var element = $("#element")[0];
get(APIへのリンク)を使用できます。
element.get()
配列を返します。