0

ReceivedByDate の入力に jqueryUI 日付ピッカーを使用しています。しかし、日付値を取得するための私の ng-model は常に null 値を渡しています。angularJsを使用してasp.net mvc 4を使用しています。これが私のコードです:

@Html.TextBoxFor(model => model.ReceivedByDate, new { autocomplete = "off", ng_model = "requisition.ReceivedByDate" })

<p>{{requisition.ReceivedByDate}}</p>

私のdatepicekのスクリプトは次のようなものです:

$(function () {
    $("#ReceivedByDate").datepicker({
        changeMonth: true,
        changeYear: true
    });
    $("#ReceivedByDate").datepicker("option", "dateFormat", "yy-mm-dd");
});

日付を選択しても、「< p> < /p>」内の値は null のままです。常にnullを保持しているようです。私は何を間違っていますか?

4

0 に答える 0