请问用JQuery动态添加span怎么获取该span的id值,能自己设置新span的id吗?
可以<div id="good"></div>
//操作方法:$(function(){$("#good").append("hello world!");$("#good").mouseenter(function(){alert($(this).text());},"#test")})