$(function() { $("#start_date").datepicker({ showOn: 'button', buttonImage: '/html/images/icon/search_dateic.gif', buttonImageOnly: true }); $('#start_date').datepicker('option', {dateFormat:"yy-mm-dd"}); $(".ui-datepicker-trigger").css("cursor","hand"); }); $(function() { $("#end_date").datepicker({ showOn: 'button', buttonImage: '/html/images/icon/search_dateic.gif', buttonImageOnly: true }); $('#end_date').datepicker('option', {dateFormat:"yy-mm-dd"}); $(".ui-datepicker-trigger").css("cursor","hand"); }); $(function(){ $("#chkAll").click(function() { var str; $bChk = $(this).is(':checked'); if(this.checked){ str ="선택취소"; $(":checkbox").attr("checked", $bChk); } else{ str = "전체선택"; $(":checkbox").attr("checked",""); } $(".chkTxt").html(str); }); });