javascript - datepicker is not working in mvc4 -
i beginner in mvc going create application.i want display datepicker in application on textbox.i have written code in view .cshtml
<link href="~/content/themes/base/minified/jquery.ui.datepicker.min.css" rel="stylesheet" /> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"/> <link rel="stylesheet" href="/resources/demos/style.css"> <script> $(document).ready(function () { $("#date").datepicker(); }); </script> <h2>index</h2> <input type="text" id="date" />
when click on textbox not working please if have idea this.
include jquery ui
in script, add class="datepicker"
want datepicker apear, , add function:
$(function() { $( ".datepicker" ).datepicker(); });
Comments
Post a Comment