Jquery: how do I know if I have this?

I need jquery to work in the browser locally. how to know if it is installed and how to install it?

my question is specific to being able to run this code:

onmouseover="evt.target.setAttribute('opacity', '0.5'); $('#someDiv').show();"
onmouseout="evt.target.setAttribute('opacity', '1'); $('#someDiv').hide();"
+5
source share
4 answers

If you intend to enable jQuery locally, as suggested by Robert, you will first need to download it here: http://code.jquery.com/jquery-1.4.2.min.js

+2
source

jQuery , , - . <script type='text/javascript' language='javascript' src='local/path/to/jquery.js'></script> <head> .

+4

body:

<script src="//ajax.googleapis.com/ajax/libs/jquery/[jquery version here]/jquery.min.js"
language="javascript" type="text/javascript"></script>

jquery . js-, -, .

EDIT: , . , .

+3

jQuery, javascript ( Chrome: > > Javascript).

:

if(jQuery) alert('jQuery is loaded');

enter.

+2

All Articles