jQueryのコードを書いてみよう
ここは "attention" というクラスがついた <p> 要素です。
ここは何もクラスがついていない <p> 要素です。
ここも "attention" というクラスがついた <p> 要素です。
ここは "someclass" というクラスがついた <p> 要素です。
jQuery Code
$(".attention").css("color", "hotpink");
ここは "attention" というクラスがついた <p> 要素です。
ここは何もクラスがついていない <p> 要素です。
ここも "attention" というクラスがついた <p> 要素です。
ここは "someclass" というクラスがついた <p> 要素です。
$(".attention").css("color", "hotpink");