TOC
Need to learn JavaScript? jQuery is a JavaScript framework, so if you don't already know about the JavaScript programming language, we recommend that you learn it now: Learn JavaScript

This article is currently in the process of being translated into Finnish (~30% done).

DOM manipulation:

Introduction to DOM manipulation

One of the most important aspects of JavaScript and thereby jQuery, is manipulation of the DOM. DOM stands for Document Object Model and is a mechanism for representing and interacting with your HTML, XHTML or XML documents. It allows you to navigate and manipulate your documents through a programming language, which in the browser will almost always be JavaScript. DOM navigation and manipulation using standard JavaScript can be pretty cumbersome, but fortunately for us, jQuery comes with a bunch of DOM related methods, making it all much easier.

Tämän oppimateriaalin ensimmäisessä "Hello, world!" esimerkissä tarkastelimme HTML-elementin valitsemista ja muokkaamista ensin jQueryllä ja sitten ilman jQueryä pelkällä JavaScriptillä. Tämä pieni esimerkki oli vain jäävuoren huippu - tulevissa luvuissa tulemme näkemään miten helppoa on käsitellä HTML-dokumentin sisältöä jQueryn avulla. Jatka lukemista!


This article has been fully translated into the following languages: Is your preferred language not on the list? Click here to help us translate this article into your language!