date picker in partial views asp.net mvc

Posted by Renu123 on Stack Overflow See other posts from Stack Overflow or by Renu123
Published on 2010-05-19T06:23:03Z Indexed on 2010/06/07 6:52 UTC
Read the original article Hit count: 229

Filed under:

i used basic date picker in asp.net mvc and it works fine but now i converted my views in partial views at this time date is not working at all means nothing is displyed when i clicked in text box of date picker. the code that i have used is

<script src="../Scripts/jquery-1.3.2.js" type="text/javascript"></script>

<script src="../Scripts/ui.core.js" type="text/javascript"></script>

<script src="../Scripts/ui.datepicker.js" type="text/javascript"></script>

and the method used for it is

         <script type="text/javascript">

                         $(document).ready(function() {
                             $("#txtTransationDate").datepicker();
                         });
                        </script>

                          <input id="txtTransationDate" name="txtTransationDate"    type="text" />

can you tell me how to display date picker in partial views. thanks.......

© Stack Overflow or respective owner

Related posts about asp.net-mvc