JQuery and 'this' object

后端 未结 5 2086
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 00:14

I have the following JQuery function being attached to the blur event of n textboxes on a webpage.

$(document).ready(function() {
        $(\"input[id$=\'_tx         


        
5条回答
  •  Happy的楠姐
    2021-01-03 00:53

    JQuery doc for Core/each:

    Execute a function within the context of every matched element.

    This means that every time the passed-in function is executed (which is once for every element matched) the 'this' keyword points to the specific DOM element. Note that 'this' does not point to a jQuery object.

提交回复
热议问题