I am trying to change the text inside the spans using this piece of jquery but I am unable to. Why does this not work? What is the problem with this piece of code?
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">< /script>
<script>
$(document).ready(function(){
$("span").text("Changed");
});
});
</script>
</head>
<body>
<p>This is a <span>section</span>.</p>
<p>This is <span>another</span> paragraph.</p>
</body>
<html>