2

こんにちは、ページに剣道カレンダーとテキスト ボックスがあります。カレンダーで任意の日付を選択すると、その値がテキスト ボックスに表示されます。(日時ピッカーのように)。入手する方法はありますか?

ここに私のサンプルコードがあります

<div id="calendar"></div>
<input type="text" name="txtdate" id="txtdate"/>

 <script>
                $(document).ready(function() {
                    // create Calendar from div HTML element
                    $("#calendar").kendoCalendar();
                });

                var cal = $("#calendar").data("kendoCalendar");

                cal.bind("change", function () {
                    // Here I wanted to bind the selected value to my text box (txtdate).                      
                });
  </script>
4

1 に答える 1

1
   var textVal =  $(this).value();
   $('#txtdate').val(textVal);
于 2013-07-08T04:49:42.823 に答える