Hi,

Try something like this:

var datesString = '';
for (var i=0; i<selectedDates.length; i++) {
        datesString += selectedDates[i].asString() + ', ';
}
datesString = datesString.substring(-2);
$(this).val = datesString;

Untested but should give you an idea of how to proceed,

Cheers,

Kelvin :)

p.s. you can loose the console.log line too...

newbie wrote:
I have fixed the issue

Solution
----------------

At this line:
console.log(selectedDates);

Just add:
console.log(selectedDates);
(this).val(selectedDates);

This will add the array of multiple dates back into text field.


New problem
-----------------------

How can I get rid of the rather long date format.

Fri Jul 20 2007 00:00:00 GMT-0400 (EDT),Fri Jul 27 2007 00:00:00
GMT-0400 (EDT)

I would like the values to be:

Fri Jul 20 2007,Fri Jul 27 2007

Any hints from anyone?

Reply via email to