Uncaught TypeError: Cannot call method 'toLowerCase' of undefined

后端 未结 4 2007
挽巷
挽巷 2021-02-06 23:49

I ran into a very vague error while doing some simple jQuery DOM manipulation.

The line that triggered the error is the following:

$(this).closest(\'tr\')

4条回答
  •  攒了一身酷
    2021-02-07 00:45

    Inside your request, $(this) is not the .remove element. It's a closure problem.

    So you can assign $(this) to a variable before and call it after

提交回复
热议问题