You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a script tag that adds jQuery to an HTML page with the following src
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js
Access and replace the content of HTML elements with jQuery.
Access the p with id "content" and add the string 'this is content' as content
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="section">
<p id="content"></p>
</div>
<script src="index.js"></script>
</body>
</html>
Use jQuery to create new, and add elements in HTML pages.
Add a new paragraph elemnt as a child of the div tag with id "section". In this new paragraph,
have the content read 'This is dynamically generated content'.