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

后端 未结 9 1249
迷失自我
迷失自我 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

    If you're using firebug you could console.log(this) inside the function and see if the selector string is accessible somewhere in the object. Sorry I am not familiar with the jQuery API.

提交回复
热议问题