This article is currently in the process of being translated into Vietnamese (~17% done).
If you are fluent in Vietnamese, 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 Vietnamese 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!
Để dùng jQuery, bạn cần đưa nó vào trong trang mà bạn muốn dùng. Bạn có thể tải jQuery từ website jQuery.com. Luôn có lựa chọn giữa bảnProduction (bản nén) và bản Development (bản giải nén) - để học thì nên dùng bản Development.
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 adding a reference to it on one of the many CDNs. 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, 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!