我尝试了很多方法,但在我点击离开后无法删除chat_box..
$(".attribute").click(function(){
var chatVal = "edit " + $(this).data("attr") + " then press enter",
chatDiv = "<input type='text' name='chat_box' value='' id='chat_box' placeholder='" + chatVal + "'></input>";
$(this).append(chatDiv);
});
$(document).click(function(){
//how to remove??
});