jQuery-セレクタ指定
指定方法 構文 内容 使用例 $('*') 全ての要素を指定 $('*') $('{要素名}') 一致する要素(a, divなど)を指定 $('input') inputタグを指定 $('.{class名}') class属性に指定したクラス名が含まれる要素を指定 $(.content) class="content"を指定 $('#{id}') i…
指定方法 構文 内容 使用例 $('*') 全ての要素を指定 $('*') $('{要素名}') 一致する要素(a, divなど)を指定 $('input') inputタグを指定 $('.{class名}') class属性に指定したクラス名が含まれる要素を指定 $(.content) class="content"を指定 $('#{id}') i…