开发者

jQuery BLUR - determine what the ID of the clicked item that triggered the blur is?

开发者 https://www.devze.com 2023-02-04 05:44 出处:网络
Given a live(\'blur\', function(e) {} how can you get the attr(\'id\') of the clicked ite开发者_如何转开发m that triggered the blur?.live(\'blur\', function(e) {

Given a live('blur', function(e) {} how can you get the attr('id') of the clicked ite开发者_如何转开发m that triggered the blur?


.live('blur', function(e) {
    var id = $(this).attr('id');
}
0

精彩评论

暂无评论...
验证码 换一张
取 消