The community is working on translating this tutorial into Indonesian, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".
If you are fluent in Indonesian, 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 Indonesian 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!
To use jQuery, you need to include it on the pages where you wish to take advantage of it. You can do this by downloading jQuery from their website at jQuery.com. There is usually a choice between a Production (compressed) version and a Development (uncompressed) version - for learning, we recommend the Development version.
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!