I am using datapicker jquery but it is not working. Can anyone help me for that, I am new to Dnn. How to add datepicker in asp.net, by using input control? Any answer would be appreciated. Thank you.
1 Answer
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<div class="demo">
<p>Date: <input id="datepicker" type="text"></p>
</div>
The Jquery website has some good examples of how to use the control and the different options you can apply. Are you trying to doing anything special? http://jqueryui.com/demos/datepicker/
10 Comments
dna
Sorry , I downloaded jquery . i tried in above .. but its not working
theedam
Have you added the script reference to your page
dna
<dnn:DnnJsInclude runat="server" FilePath="~/DesktopModules/DNAiusItemblurs/js/datepicker.js" /> <script> $(function () { $("#datepicker").datepicker(); }); </script>
dna
<div class="demo"> <p>Date: <input id="datepicker" type="text"></p> </div>
theedam
Try just adding this <script src="ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
|