문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자. 문서의 원본을 보거나 복사할 수 있습니다. =jQuery= [http://jquery.com jQuery.com] jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript. [http://learn.jquery.com Learn jQuery] jQuery CDN =jQuery UI= ==Widget== ===datePicker=== 한글화 적용 <syntaxhighlight lang="javascript">$(function() { $.datepicker.regional['ko'] = { closeText: '닫기', prevText: '이전달', nextText: '다음달', currentText: '오늘', monthNames: ['1월','2월','3월','4월','5월','6월', '7월','8월','9월','10월','11월','12월'], monthNamesShort: ['1월','2월','3월','4월','5월','6월', '7월','8월','9월','10월','11월','12월'], dayNames: ['일','월','화','수','목','금','토'], dayNamesShort: ['일','월','화','수','목','금','토'], dayNamesMin: ['일','월','화','수','목','금','토'], weekHeader: 'Wk', dateFormat: 'yy-mm-dd', firstDay: 0, isRTL: false, duration:200, showAnim:'show', showMonthAfterYear: true, yearSuffix: '년'}; $.datepicker.setDefaults($.datepicker.regional['ko']); });</syntaxhighlight> 기간체크 <syntaxhighlight lang="javascript"><script> /* jQuery DatePicker 를이용하여 기간설정 유효성 적용 */ $(function() { //시작일 $( "#from" ).datepicker({ numberOfMonths: 1, dateFormat: "yy-mm-dd", showOn: "button", buttonImage: "이미지경로", buttonImageOnly: true, onSelect: function( selectedDate ) { var option = this.id == "from" ? "minDate" : "maxDate", instance = $( this ).data( "datepicker" ), date = $.datepicker.parseDate( instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings ); jQuery( "#from, #to" ).not( this ).datepicker( "option", option, date ); } }); //종료일 $( "#to" ).datepicker({ numberOfMonths: 1, dateFormat: "yy-mm-dd", showOn: "button", buttonImage: "이미지경로", buttonImageOnly: true, onSelect: function( selectedDate ) { var option = this.id == "from" ? "minDate" : "maxDate", instance = $( this ).data( "datepicker" ), date = $.datepicker.parseDate( instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings ); jQuery( "#from, #to" ).not( this ).datepicker( "option", option, date ); } }); }); </script></syntaxhighlight> <syntaxhighlight lang="html5"><input type="text" id="from" name="from" style="border: 1px solid #eee; margin:2px;" size="10"> ~ <input type="text" id="to" name="to" style="border: 1px solid #eee; margin:2px;" size="10"></syntaxhighlight> [[분류:jQuery]] [[분류:javascript]] [[분류:개발]] [[분류:dev]] JQuery 문서로 돌아갑니다.