jQuery blur event with ID and value
问题 I want to use the 'blur' event in the jQuery text plugin. http://jqueryte.com $ ('textarea'). jqte ({ blur: function (elem) { // ID textarea? // Content editor? } }); The function of the blur, I would like to determine the content and the ID of the textarea. Can you help me with an idea? 回答1: Since it doesn't look like the blur event is passing any arguments to the callback you might have to do something like $("textarea").each(function(idx, elem) { $(this).jqte({ blur: function() { console