客戶(hù)專(zhuān)線(xiàn):138-2888-3821
我們專(zhuān)注于高端品牌網(wǎng)站創(chuàng)意設(shè)計(jì)與開(kāi)發(fā)
$(document).ready(function(){
$("#addrow").click(function(){
var div = $("#root:first").clone();
$(".mt-repeater").append(div);
});
});
function delrow(obj) {
var parent_id = $(obj).parent().parent();
var count = $(".mt-repeater").find($(".mt-overflow")).length;
if (count<2) {
return false;
}
$(parent_id).remove();
}
<div class="form-group col-md-4 mt-repeater">
<div class="mt-repeater-item mt-overflow" id="root">
<div class="mt-repeater-cell">
<input type="text" placeholder="<?=lang('輸入域名')?>" class="form-control mt-repeater-input-inline" name="domain[]" />
<a class="btn btn-danger mt-repeater-delete mt-repeater-del-right mt-repeater-btn-inline" id="delrow" onclick="delrow(this);">
<i class="fa fa-close"></i>
</a>
</div>
</div>
</div>
<a class="btn btn-success" id="addrow">
<i class="fa fa-plus"></i> <?=lang('新增一條')?></a>
文章引用:http://www.lt-ad.com/new/246.html
本站文章為深圳網(wǎng)站建設(shè)·源美網(wǎng)絡(luò)原創(chuàng)策劃,如有版權(quán)糾紛或者違規(guī)問(wèn)題,請(qǐng)聯(lián)系我們刪除,謝謝!
下一篇: Centos安裝dos2unix
售后保障
承諾任何問(wèn)題1小時(shí)內(nèi)解決數(shù)據(jù)備份
更安全、更高效、更穩(wěn)定價(jià)格公道精準(zhǔn)
項(xiàng)目經(jīng)理精準(zhǔn)報(bào)價(jià)不弄虛作假合作無(wú)風(fēng)險(xiǎn)
重合同講信譽(yù),無(wú)效全額退款