EDIT : I am able to get the date picker on cloned form element but when i select a date, the date is populated on the first div form element, rather than cloned form element
I am having problems in displaying a datepicker on a cloned form element.
I have initialized a div (PopupReset div having a jsp form in it).
when a button clicked I am copying and displaying the content of PopupReset in another div called "Popup" as modal dialog.
<div id="PopupReset" style="display:none;">
<jsp:include page="Popup.jsp"></jsp:include>
</div>
<div id="Popup" style="display:none"></div>
datepicker in both divs look same when I looked at the source code. But datepicker working on first div "PopupReset" where as it is not working modal dialog, which has copy of "PopupReset" html.
 <input type="text" name="enteredOn" size="10" maxlength="10" value="" id="_enteredOn" 
 class="enterDate hasDatepicker">
  jQuery( ".enterDate" ).datepicker({
        showOn: "focus",
        changeMonth: true,
        changeYear: true,
        dateFormat: dateFormat(),
        yearRange: "1901:-0"
        });
i am having the form cloned due to some constraints on the requirements.
Please share any ideas on how to work this out.
I appreciate your help!
Thank you, Sri
 
     
    