AnApprentice
AnApprentice

Reputation: 110950

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

Given a live('blur', function(e) {} how can you get the attr('id') of the clicked item that triggered the blur?

Upvotes: 2

Views: 2216

Answers (1)

S16
S16

Reputation: 3003

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

Upvotes: 1

Related Questions