I use the direct javascript property, for example this.idin the following cases:
- Whenever he does exactly what I want.
- When speed is important.
- When all browsers care about supporting exactly what I need.
I use jQuery access method when:
- There are issues with cross-browser support, or I'm not sure there are no cross-browser issues.
- When the jQuery method has more or more functionality, which is useful in my circumstances.
- When the jcuery chain and chain part works better,
- jQuery , / jQuery.
: str = $(elem).html() str = elem.innerHTML, $(elem).html(str) elem.innerHTML = str;, jQuery , , innerHTML.