I was creating this very basic program using JQuery but somehow it's not working. I spent 20 mins on it but couldn't figure it out. Don't know what I am missing in it. The code is like this:
<head>
<script>
$('#error').html('<p>There are 4 horses.</p>');
or
alert($('#error').html());
</script>
</head>
<body>
<div id="container">
<div id="error">
<h2>hello</h2>
</div>
</div>
</body>
can you guide me where I am wrong.
tag after it? why do you have the random uncommented `or` statement in your JavaScript? did you mean to comment it?
– KHeaney Feb 13 '15 at 17:13