datepicker on multiple inputs

datepicker on multiple inputs


I tried using datepicker on multiple input fields with the following
code.
    $(function() {
        $("#datepicker1").datepicker();
        $("#datepicker2").datepicker();
    });
<label for="EventStartDate">Event Start Date</label>
<input type="text" name="EventStartDate"
id="datepicker1" value="" />
<br />
<label for="EventEndDate">Event End Date</label>
<input type="text" name="EventEndDate"
id="datepicker2" value="" />
but something wrong with it. when I submit the form, it submits dates
with a comma end of first date value. Any idea why?
eg:
3/27/2009,
3/28/2009