Uncaught TypeError: Cannot call method 'toLowerCase' of undefined

后端 未结 4 2001
挽巷
挽巷 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

    I got exactly the same error on $.get() request.

    For me this is the most weird bug in jQuery (my version 1.8.3).

    My reason for this error was TD element with ID set to "nodeName".

    After change ID value to something else, the error dissapear.

    Original:

    
    

    New:

    
    

提交回复
热议问题