datepicker

2021. 8. 17. 15:38웹 프로그래밍/HTML, CSS

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" />
<script>
$(function () {
  $("#checkin").datepicker({
 	 dateFormat: 'yy-mm-dd',
      onSelect: function(v){console.log(v);},      
      firstDay: 0
  });
});
</script>

<label for="checkin">📅</label>
<input type="text" name="checkin" id="checkin" placeholder=" Check in" />
728x90

'웹 프로그래밍 > HTML, CSS' 카테고리의 다른 글

다음 우편번호 찾기 API  (0) 2021.03.26
레이블  (0) 2021.03.26