Do I only need to include standard jQuery library for the datepicker?

Also, I want the datpicker to popup when either the input file or a img file of a calendar is clicked. is this how I would select the 2 item's using their id attributes?
<script>
$(function() {
$( "# id-1, #id-2").datepicker();
});
</script>

Also, if the user selects the image instead of the input file, how do I put the selected date to the input file with id-1?

Gary,
I don't know what stupid thing I'm doing wrong but it just doesn't do anything when I clicked on eihter the calendar or the input box. I copied you last code posted into notepad++, save as a new html file. Click Run, From Firefox and nothing happens when I click on them..

Lapucca, See my last reply above for your script, updated to work the way you are testing it (in notepad++ / firefox).

It was breaking because you are running the script locally on your machine which was breaking the jquery urls. You will need to include "HTTP:" in your jquery src paths if you want to continue testing them locally this way.

0

lapuccaAuthor Commented: 2014-11-13

Gary,
Yaaaayyy! Finally it worked after I added http://to the path. That was the problem and the order of library. Definitely learned my lesson today. Thank you so much.