I am changing the paragraph text using a very simple jquery , but it isn’t working. Please help.
SORRY FOR NOT LEARING JQUERY FIRST, I JUMPED DIRECTLY TO THE CODE, NOT KNOWING THAT IT NEEDS A SEPARATE jquery file too.
<script type="text/javascript">
$(document).ready(function(){
$("p").text("The DOM is now loaded and can be manipulated.");
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
You haven’t included the jQuery library in the page, so
$isundefined.