问问题
1691 次
2 回答
1
应该是简单的 jQuery 魔术。
var $append = $( this );
$append.find( 'div.left' ).remove();
$append.find( 'strong' ).contents().unwrap();
$append.appendTo(".creating-wrapper .recipients");
于 2012-12-07T02:00:06.630 回答
1
这个怎么样?
$("body").on("click", ".search-results li", function(){
$(this).find('div.left').remove();
$(this).find('strong').each(function() {
$(this).after($(this).text()).remove();
});
$(this).appendTo(".creating-wrapper .recipients");
});
于 2012-12-07T02:00:41.730 回答