Tutorial for How to Install jQuery Pluginsby Chris Hoffman
Locate and download a jQuery plugin from the plugins page the jQuery website.
Open the downloaded plugin’s archive file and extract the “.js” file inside it. Some plugins may contain multiple JS files.
Open your Web page’s HTML file in a text editor.
Locate the line that begins with “<script src="jquery.js” your Web page’s HTML file. Use your text editor’s search feature to locate this line.
Add the following text onto a new line immediately after the “jquery.js” line, replacing “jquery.plugin.js” with the file name of the plugin’s JS file.
Add additional “<script” lines for each plugin JS file you want to install on the Web page.
Save your Web page’s HTML file. Upload the HTML file and the plugin JS files to the same directory on your Web server.
- check Use a jQuery plugin on additional Web pages by adding the plugin's script tag to each Web page's HTML file.
- check Consult each plugin’s documentation for information on usage.
- close Only install plugins you trust. Malicious plug-ins could steal personal data or have other negative effects on your website.
- photo_camera Ablestock.com/AbleStock.com/Getty Images
Click here to provide feedback on this article