Core/API/jQuery jQuery関数/$(...) jQuery(expression, context) CSSセレクターを受け取って、マッチしたエレメント集合のjQueryオブジェクトを返す。 jQuery(html, [ownerDocument]) HTML文字列を受け取ってDOM Elementを作成し、それらを含むjQueryオブジェクトを返す。 jQuery(elements) 受け取ったエレメントをjQueryオブジェクトにして返す。 jQuery(callback) $(document).ready()の短縮形。 jQueryオブジェクト操作 each(callback) 全ての要素に対してコールバック関数を実行する。 size() jQueryオブジェクトが持つ要素数を返す。 length jQueryオブジェクトが持つ要素数を保持する。 selector
よくある開閉するメニュー(リファレンスTOPでもやってます)の実装は、slideToggle()を使えば簡単に出来ます。 例えばこのサイトの左側に出ているメニューでは [HTMLソース] <div id="navi"> : <h4>API</h4> <ul class="sub"> <li><a href="/jquery/api/core/">Core</a></li> <li><a href="/jquery/api/selectors/">Selectors</a></li> <li><a href="/jquery/api/attributes/">Attributes</a></li> <li><a href="/jquery/api/traversing/">Traversing</a></li> <li><a href="/jquery/api/manipulation/">
【2024年8月】レンタルサーバーおすすめ10社を徹底比較! 人気ランキングも PR 最終更新日:2024年08月16日
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く