Cloning datepicker objects [JQuery]
问题 I have an input field that I define as a datepicker through a css class. I now want to clone this input field and have it so the cloned inputs are also datepickers. After reading from various sources I was lead to believe that the following code should work but it doesn't. I was hoping maybe someone could help me figure out what I was doing wrong :) <input type="text" id="date" name="date" class="calendar" /> <input type="button" id="clone" name="clone" value="Clone dates" /> And here's the