TAG
JavaScript
Result
Run
License
<h3 id="title">Selector using id.</h3> <h3 class="title">Selector using class.</h3> <h4 class="title">Selector using class.</h4>
$(function() { // id를 이용한 선택 $("#title").css("background", "#FFFF00"); // class를 이용한 선택 $(".title").css("color", "#FF0000"); // 태그명을 이용한 선택 $("h3").css("border", "1px solid #999"); });
Console
expand_less
License
License
by DevDic
Close