티스토리 뷰
Html]
<input type="checkbox" name="colorCheckbox" class="green" />
<input type="checkbox" name="colorCheckbox" class="red" />
<input type="checkbox" name="colorCheckbox" class="purple" />
Style]
<style type="text/css">
.checkbox {
width: 19px;
height: 20px;
padding: 0px;
background: url("/Content/Images/checkboxBG.jpg");
display: block;
float: left;
}
.checked { background-position: 0px -50px; }
.clicked { background-position: 0px -25px; }
.clicked.checked { background-position: 0px -75px; }
.green { background-color: Green; }
.red { background-color: red; }
.purple { background-color: purple; }
</style>
javaScript]
<script type="text/javascript">
$(function() {
$('input[name=colorCheckbox]').each(function() {
var span = $('<span class="' + $(this).attr('type') + ' ' + $(this).attr('class') + '"></span>').click(doCheck);
if ($(this).is(':checked')) { span.addClass('checked'); }
$(this).wrap(span).hide();
});
function doCheck() {
if ($(this).hasClass('checked')) {
$(this).removeClass('checked');
$(this).children().prop("checked", false);
} else {
$(this).addClass('checked');
$(this).children().prop("checked", true);
}
}
});
- Total
- Today
- Yesterday
- 제품 등록
- .submit()
- 람다식(lambda expression)
- nl2br
- In App Purchase
- await
- React
- 메이븐(maven)
- java 키워드 정리
- 표현 언어(expression language)
- 스프링 시큐리티(spring security)-http basic 인증
- docker
- 문자 자르기
- system.io
- jsp 오픈 소스
- REST API
- java-개발 환경 설정하기
- 스프링 시큐리티(spring security)
- java.sql
- MainActor
- jstl(java standard tag library)-core
- 진수 변환
- 인텔리제이(intellij)
- jstl(java standard tag library)
- 특정 문자를 기준으로 자르기
- 스프링 프레임워크(spring framework)
- java web-mvc
- System.Diagnostics
- 스프링 프레임워크(spring framewordk)
- error-java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |