1
日期選擇器產生新的html
內容後,我做的事:無法重建對生成的html
var el_1 = $('.index_1').html();
$('#payment_block_content').html(el_1);
這el_1
有一個數據字段:
<input class="datepicker form-control hasDatepicker" id="id_date" name="date" type="text" />
我怎麼能刷新這個日期選擇?接下來我嘗試:
$("#id_date").on('focus', function(){
$(this).datepicker();
});
儘量做到像你。但是這也不起作用 –
@СергейПотапов,已更新回答 – Satpal
hm ..當需要使用'.append(el_1)'時,我使用'.html(el_1)''因此您的snswer –