input에 datepicker 달력 부분 문의 드립니다.
본문
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
<script>
$(function(){ //달력
$("#wr_11").datepicker({changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+3650d"});
});
</script>
상단에 위 내용 넣고 input 아래 내용 넣어서 글작성시 날짜가 view 페이지에 잘 나옵니다.
<input type="text" name="wr_11" value="<?php echo $wr_11 ?>" id="wr_11" class="frm_input" style="width:250px;">
근데 수정 누르고 들어가면 해당 input에 날짜가 안보이네요.
원래 보여야 하지 않은지요? 보이게 하는 방법이 궁금합니다.
답변을 작성하시기 전에 로그인 해주세요.