Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to add jQuery to a framework?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #148209
    AlirezaM
    Participant

    Hello to every one!

    I want to start a new template based on bootstrap framework.

    It has lots of things ready (from coding sight) like buttons and …

    The only thing I want to add on it is jQuery library and I want to give an

    interactivity to it with this library.

    How should I do that?

    in bootstrap’s page they have written this:

    Bring Bootstrap’s components to life with over a dozen custom jQuery plugins.

    #148667
    AlirezaM
    Participant

    Please help me to achieve the jQuery on a template.

    #148678
    Senff
    Participant

    Include it like you would with any other website; call the library in the header. Or the footer, whatever you prefer.

    #148705
    Ed
    Participant

    There are a number of ways you can add jQuery to your project.

    1. Download it from jquery.com, FTP it to your server, and include it in the <head>, like: <script src="/your/path/to/jquery.js"></script> – this is slower but reliable in that you always know it’ll be there
    2. Use Google’s hosted version which is delivered from a CDN , like: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> – this is faster but it’s not on your server and some devs worry that Google might stop offering this service and if that happens you’re screwed
    3. Combine both, and use Google CDN’s jQuery if it’s available, and fall back to a local copy if it is not – this is really the best of both worlds.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.