I need to create a datepicker and the simplest thing doesn't work:
In my view :
@model SomeModel
<script type="text/javascript">
alert("works");
$(function () {
$("#datepicker").datepicker({
showOn: "button",
buttonImage: "/SiteContent/images/Brand/icon_calendar.png",
buttonImageOnly: true
});
});
</script>
<div>
<input name="input2" type="text" size="20" class="inputfield" id="datepicker" />
</div>
Am I putting the JS in wrong place ? The path to the image is fine. The button will not appear next to the input text field. Thank you,
jquery uialong withjquery