Jqueryis thatJSan extension library, tool library, provides a lot of quick and easy way, so willJSobject is converted toJQueryobject, the object can be manipulated more easily. ButJQueryobjects are not omnipotent, there are someJSobjects can be,JQueryobject is not provided, so it needs to be converted back toJSobject in order to operate. Another scenario might be that you use some third-party libraries, and the interface functions can only acceptJSobject orJQueryobject, then you need to convert between the two.
1. method of converting jQuery to Dom Object [index] or . Get (Index) :
A,$ ("#form") [index], which gets the Dom object of the form element
b,$ ("#form"). Get (Index)
2 . Convert js dom object to jQuery object, for it is already a Dom Object, you can get a jQuery object simply by wrapping the DOM object with $ () . $ (DOM object ) :
Var A=document.getelementbyid ("form");
$a =$ (a);
After the object conversion, $ A is the encapsulated jquery object that can invoke the jquery encapsulated method
Conversion between a jquery object and a JS native DOM object