• Navigation
  • Tags
  • Last Updated
  • Archive
  • Archive
  • Other Writing
  • Other Writing
  • About
  • About
  • QUEIROZF.COM
  • Home

Include an external Javascript file using JQuery

Last updated: 30 Jul 2012

inside a javascript file, add this:

$.getScript('/js/lib.js');

that will include the file lib.js, the same way you would use include or require in, for example, PHP.

docs

Felipe 30 Jul 2012 30 Jul 2012 jquery include

« Iterating through all Paragraphs - Open/Libre Office Macro
Archive
Reload/Refresh a page using Javascript »

Dialogue & Discussion


About This Site

Technology reference and information archive. More ›

Other
  • Contact
  • Atom Feed
  • sitemap.xml
Credits
  • Theme by Phlow
  • Favicon by Webalys

Created with Jekyll.