2011-04-28 13 views

回答

0

您可以使用jQuery找到

var id; 

$("textarea").focus(function() { 
    id = this.id; 
}); 

var id = $("*:focus").attr("id");