0

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 1

2
<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/

Sign up to request clarification or add additional context in comments.

10 Comments

Sorry , I downloaded jquery . i tried in above .. but its not working
Have you added the script reference to your page
<dnn:DnnJsInclude runat="server" FilePath="~/DesktopModules/DNAiusItemblurs/js/datepicker.js" /> <script> $(function () { $("#datepicker").datepicker(); }); </script>
<div class="demo"> <p>Date: <input id="datepicker" type="text"></p> </div>
Try just adding this <script src="ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.