I am new to JQuery. I am trying to create a simple form with validations in it. I came across this excellent site which has lots of examples : http://jqueryvalidation.org/email-method
I had learnt from the jquery tutorials that the <script src>
is pointed to a copy of jquery.js
locally. But in all the examples in the link given above, various sources are mentioned pointing to different URLs.
For example:
src="http://code.jquery.com/jquery-1.9.1.min.js"
src="http://jquery.bassistance.de/validate/jquery.validate.js"
src="http://jquery.bassistance.de/validate/additional-methods.js"
What is the difference between storing locally and pointing to a web source? What if I incorporate these URLs in my application? Would that mean my code would be conditional to working of which ever servers they are stored in? If so, isn't that a risk? What if their server goes down?
Sorry, I just really want to know the difference.