티스토리 뷰
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()
- nl2br
- 메이븐(maven)
- In App Purchase
- error-java
- 스프링 프레임워크(spring framework)
- 인텔리제이(intellij)
- jstl(java standard tag library)-core
- java 키워드 정리
- 진수 변환
- system.io
- jsp 오픈 소스
- REST API
- 문자 자르기
- MainActor
- System.Diagnostics
- docker
- java.sql
- java-개발 환경 설정하기
- java web-mvc
- React
- jstl(java standard tag library)
- 특정 문자를 기준으로 자르기
- 표현 언어(expression language)
- 스프링 시큐리티(spring security)-http basic 인증
- 람다식(lambda expression)
- 스프링 시큐리티(spring security)
- 제품 등록
- await
- 스프링 프레임워크(spring framewordk)
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |