I'm trying to implement an input datepicker in my asp.net-mvc project that display only years to create/edit new values of my model. I want the day and the month to be always the same (31/12/year) and allow the user to select only the year. Something like this:

For that, I'm using the code from here: https://qawithexperts.com/article/bootstrap/select-only-year-in-bootstrap-datepicker/323
At the begginig, it didn't work:

But lattely I found why. In the _layout.cshtml I have the default view when you create an asp.net-mvc project. And If I delete this: @Scripts.Render("~/bundles/jquery") It will work:

But it is not correct to delete that since I need it for other things in other views. So my question is how to use the "only-year boostrap-datepicker" with @Scripts.Render("~/bundles/jquery") and why is this error happening?
Thank you.





