How do I get a jQuery selector's expression as text?

后端 未结 9 1282
迷失自我
迷失自我 2020-11-30 10:36

I have a jQuery selector, which has a chained function.

Inside the function I want to get access to the TEXT representing the expression for the selector.

         


        
9条回答
  •  广开言路
    2020-11-30 11:21

    There is a 'selector' attribute in the jQuery object, but I'm not sure it's always available.

提交回复
热议问题