(→개요) |
Jmnote bot (토론 | 기여) 잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==)) |
||
29번째 줄: | 29번째 줄: | ||
*[[jQuery .css()]] | *[[jQuery .css()]] | ||
==참고 | ==참고== | ||
*https://api.jquery.com/removeclass/ | *https://api.jquery.com/removeclass/ | ||
[[분류: JQuery Manipulation]] | [[분류: JQuery Manipulation]] |
2017년 6월 27일 (화) 04:48 판
1 개요
- jQuery .removeClass()
- CSS 클래스 제거 함수
- HTML 요소에서 CSS class를 제거하는 jQuery 메소드
2 예시
html
Copy
<style>
.highlight { background: yellow; }
</style>
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$(function() {
$("p").last().removeClass( "highlight" );
});
</script>
<p class='highlight'>Hello</p>
<p class='highlight'>and</p>
<p class='highlight'>Goodbye</p>
3 같이 보기
4 참고
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.