I have an input which has name=”date” as identifier. This is inside of a while loop to generate dynamic data. What is happening, is that when the loop is run, the datepicker only works on the first input. It displays when each input has focus, but when I click a date, it always inserts it into the first input field. How can I correct this?. Thanks
I have placed code at the following fiddle link.
jsfiddle.net/mNFrb/
UPDATE: I have placed code at the above link. I cannot do hyper link because it tells me link not relevant when I edit, whatever that means.
Are you putting the name date on each single input? You should not have several inputs with the same name. Use a unique name for each input, but you can use the same class for all of them and set the jquery datepicker to make them datapickers based on the class.
To give more detailed information, I will need to see you code as it is now, but this should give you an idea.