Should I use a more current Library than 1.8.11?
I have my date picker working properly with this code:
- <link rel="stylesheet" type="text/css" href="https://ajax.googleapis. com/ajax/libs/jqueryui/1.8.11/ themes/base/jquery-ui.css" />
- <script src="https://ajax.googleapis. com/ajax/libs/jqueryui/1.8.11/ jquery-ui.min.js" type="text/javascript"></ script>
- <script type="text/javascript">jQuery( '#inf_custom_ MATURITYDATE'). datepicker({dateFormat: 'dd-mm-yy'});</script>
But I see on this page here (the google libraries page):
https://developers.google.com/speed/libraries/devguide#Libraries
That the current version is 1.10.1 for the jQuery UI
Would it be incorrect to use it like this:
- <link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/base/jquery-ui.css" />
- <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js" type="text/javascript"></script>
- <script type="text/javascript">jQuery('#inf_custom_MATURITYDATE').datepicker({dateFormat: 'dd-mm-yy'});</script>
The reason I ask is that at the top of the Libraries page is says:
To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page. For instance, to load jQuery, embed the
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
snippet in your web page.
I have not done that in my testing and it 'seems' to work as I have it posted.
Should I be adding that code forthe 1.9.1 script line so that the code looks like this instead (to prevent future problems?):
- <link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/base/jquery-ui.css" />
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js" type="text/javascript"></script>
- <script type="text/javascript">jQuery('#inf_custom_MATURITYDATE').datepicker({dateFormat: 'dd-mm-yy'});</script>
Is there a more current jquery-ui.css sheet I should be referencing as well? If so where would I find that as I didn't notice it in the google libraries page at all.
Thanks for the help.