This article is currently in the process of being translated into Spanish (~10% done).
If you are fluent in Spanish, then please help us - just point to any untranslated element 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!
Para utilizar jQuery, debe incluirlo en las páginas en las que desea aprovecharlo. Puede hacerlo descargando jQuery de su sitio web en jQuery.com. Generalmente hay una opción entre una versión de Production (comprimida) y una versión de Development (sin comprimir). Para aprender, recomendamos la versión de desarrollo.
A part of your page should now look something like this:
You can use jQuery from a CDN just like you would do with the downloaded version, only the URL changes. For instance, to include jQuery 3.3.1 from Google, you would write the following:
I suggest that you use this approach, unless you have a specific reason for hosting jQuery yourself. Here is a link to the jQuery CDN information from Google:
Here's the information about using jQuery from a CDN from the official jQuery website:
Using jQuery can be accomplished by downloading the library or add a reference to it on one of the many CDN's. Either way, you will usually get the choice between an uncompressed developer version and a compressed production version. For development and testing, use the uncompressed version, to get more precise errors and understanding of the library. For production use you should use the compressed version, to save bandwidth for your end-users, which will also result in faster load times for your website.
As soon as you have added jQuery to your page, as described above, you are ready to move on and learn more about jQuery in the coming chapters!