How do I get my external js file of Jquery to work? It works well when placed within the html file, but not in the external file. It does nothing. My jqueryexample.js file looks like this:
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
My jqueryexample.html file looks like this:
<!DOCTYPE html> <html> <head> <script src=jquery.min.js"></script> <script src="jqueryexample.js"></script> <title>jqueryexample</title> </head> <body> <p>If you click on me, I will disappear.</p> <p>Click me away!</p> <p>Click me too!</p> </body> </html>