Build A Calculator! 4/25


#1

Hello! I try to do lesson “Build A Calculator”, I’m at 4/25. I have to: Change the .text() of the div of the id lets_go to Lemme Go! When I try to save & submit code, I get message “Oops, try again. Don’t forget to add the $(document).ready() function!”. What’s wrong with this code?

<!DOCTYPE html>
<html>
	<head>
		<title>Calculator</title>
		<link rel="stylesheet" href="style.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
		<script src='script.js' type="text/javascript"></script>
	</head>
	
	<body>
		<div id="lets_go"></div>
	</body>
	
</html>
#lets_go {
	width: 100px;
	height: 50px;
	background-color: blue;
}
$( document ).ready(function() {
    $("#lets_go").text("Lemme Go!");
});

#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.