<div class="box">
<input type="text" value="url" />
<span class="add-btn"> + </span>
</div>
點擊添加按鈕或加號,另一個盒子應該是動態添加的。如何在jQuery中實現它。如何使用jQuery/CSS顯示div焦點?
$('.box input[type=text]').blur(function() {
//Whatever you want to do.
});
入住這JSFiddle
顯示在div取決於你如何實現它一下:
退房jQuery的[模糊](https://開頭的API .jquery.com/blur /)和jquery [show](http://api.jquery.com/show/) – frikinside