Isaac Ferguson wrote:
I added a datePicker using jQuery at the bottom of the page. If I use one it works but when I use two only the one which is at the first place in the form shows a pop up for pick a date, the other one just doesnt show it.
IDs for HTML elements must be unique. First of all, if you add two datepickers, make sure they have two different IDs. Also, you are initializing the datepicker based on the ID, which gets messy if you keep using the ID. A better approach is to initialize the datepicker based on a class if you have multiple elements on the same page.
Using a class for the datepicker makes your code look like this: