2012-04-13 20 views

回答

1

那是因爲你必須調用新添加的元素在datepicker()功能

document.getElementById("placeholder").appendChild(newFieldSet); 
$('input.date', newFieldSet).datepicker(); 
    window.lastClone = newFieldSet.id; 

http://jsbin.com/aqijuh/17/edit

+0

它仍然沒有出現對我來說,工作正常。 – PlatiNUM 2012-04-13 16:36:15

+0

可以依賴我使用的瀏覽器嗎? – PlatiNUM 2012-04-13 16:37:49

+0

@PlatiNUM不,它不應該依賴於瀏覽器,對我來說它同時在Firefox和Chrome中工作 – 2012-04-13 16:47:55