Hey puce, you did good by including the original link. You have excluded this line of code <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> from the original link, and the code is working only if this line exists. Can you please help me understand why this single line is so important?
–
learnerFeb 13 at 15:23

Sure! I excluded it because it is the load of jQuery. jQuery is a javascript library that wraps some functions and (IMO) helps making your code cleaner (ask an expert for a more technical explanation). The fact of having $('#img_prev') implies that jQuery is present. The thing is, in the source it's loading a very old version of jQuery, the coder should aim to load the most recent version of jQuery whenever is possible. Anyway, I will put a comment making it clearer :)
–
PuceFeb 13 at 15:40

Then is it possible to load jquery offline? I want to run my application offline. Please help.
–
learnerFeb 13 at 15:56