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();"
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
jQuery , , - . <script type='text/javascript' language='javascript' src='local/path/to/jquery.js'></script> <head> .
<script type='text/javascript' language='javascript' src='local/path/to/jquery.js'></script>
<head>
body:
body
<script src="//ajax.googleapis.com/ajax/libs/jquery/[jquery version here]/jquery.min.js" language="javascript" type="text/javascript"></script>
jquery . js-, -, .
EDIT: , . , .
jQuery, javascript ( Chrome: > > Javascript).
:
if(jQuery) alert('jQuery is loaded');
enter.