This article is currently in the process of being translated into Spanish (~25% done).
If you are fluent in Spanish, then please help us - just point to any untranslated element (highlighted with a yellow left border - remember that images should have their titles translated as well!) inside the article and click the translation button to get started. Or have a look at the current translation status for the Spanish language.
If you see a translation that you think looks wrong, then please consult the original article to make sure and then use the vote button to let us know about it.
Please help us by translating the following metadata for the article/chapter, if they are not already translated.
If you are not satisfied with the translation of a specific metadata item, you may vote it down - when it reaches a certain negative threshold, it will be removed. Please only submit an altered translation of a metadata item if you have good reasons to do so!
Cada tutorial de programación decente comenzará con un "¡Hola, mundo!" ejemplo y este tutorial es otro de ellos. En el capítulo anterior, aprendimos cómo incluir jQuery en nuestra página, para que podamos comenzar a usar todas sus excelentes funciones. Necesita saber un poco más sobre cómo funciona jQuery, antes de poder comenzar a escribir su propio código, pero solo para asegurarse de que todo funcione y para que vea cuán simple es jQuery, comencemos con un pequeño ejemplo:
document.getElementById("divTest2").innerHTML = "Hello, world!";
And it would be even longer if our HTML element didn't have an ID, but for instance just a class.
Normally though, you should wait for the document to enter the READY state before you start manipulating its content. The above examples will work in most browsers and likely even work when you do more advanced stuff, but certain tasks may fail if you try to do them before the document is loaded and ready. Fortunately, jQuery makes this very easy as well, as we will see in the next chapter. After that, we will start looking into one of the most important aspects of jQuery, which has already been used in the above example: Selectors.