How to get javascript control from JQuery object?

后端 未结 4 1195
说谎
说谎 2021-02-12 23:16

I\'m a beginner in JQuery,

How can I get the control as a javascript object from a JQuery object

var _object = $(this). ??
4条回答
  •  孤街浪徒
    2021-02-12 23:56

    In your case, simply use this.

    $(this)[0] == this if this is a DOM element. If it's something else, e.g. a selector, $(this)[0] is the way to go.

提交回复
热议问题