Hi @App Dev ,
According to your codes,you must add datepicker.js.You need to do like this:
<s cript src="~/Scripts/jquery-1.12.4.min.js"></s cript>
<s cript>
$(function () {
$('#d').change(function () {
$('#z').datepicker('setDate', $(this).val());
});
})
</script>
<h2>Index</h2>
<input type="text" id="d" />
<div id="z"></div>
@section scripts
{
@Scripts.Render("~/Scripts/jquery-1.12.4.min.js")
@Scripts.Render("~/Scripts/bootstrap.min.js")
@Scripts.Render("~/Scripts/bootstrap-datepicker.min.js")
@Styles.Render("~/Content/bootstrap.min.css")
@Styles.Render("~/Content/bootstrap-datepicker.min.css")
}
By the way,if you need to post any codes,you could put codes into txt or screenshots to us.
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.