1. Convert jQuery object into DOM object
jQuery objects cannot use methods in DOM, but if you are not familiar with the methods provided by jQuery objects, or jQuery does not encapsulate the desired methods and have to use DOM objects, there are two ways to deal with them:
1. The jQuery object is an array-like object, and the corresponding DOM object can be obtained through the [index] method:
2. The other one is provided by jQuery itself, and the corresponding DOM object is obtained through the get(index) method
2. Convert DOM objects into jQuery objects
For a DOM object, you only need to wrap the DOM object with $() to get a jQuery object.
The above is the entire content of this article, I hope you all like it.