Diference between getElementById and jquery $('#smth')
What's the difference between classic Javascript code: document.getElementById('theID') and the jQuery version: $('#theID') document.getElementById returns a DOM object. This is the browser's native way of thinking about an element in the page. It has various methods and properties. These can be a little clunky to use. The jQuery object (created by the $ method) is a wrapper around a DOM element or a set of DOM elements. The normal properties and methods are not available; you get a selection of different methods that make the process of DOM manipulation more intuitive. The difference is more