在jQuery中,如何做到: 获取 “光标所在文本框的id”

在jQuery中,如何做到:获取 “光标所在文本框的id”
2025-05-13 13:34:36
推荐回答(1个)
回答1:

$('input').focus(function(){
$(this).attr('id');
});