I try to use jquery for a web project which I’m testing on localhost currently. In my base.html I try to use the google service with this link
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">
In my rendered site I get valid markup:
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").toggle();
});
</script>
</head>
But the functions don’t work. Do I have to host jquery myself while developing?
You forgot to close the
readyfunction: