here is my code
<!DOCTYPE html>
<html>
<link rel="stylesheet"
type="text/css"
href="style.css" />
<title>mysite</title>
<head>
<image src="images.jpg" id="img1">
<image src="images2.jpg" id="img2">
<script src="jquery.js">
</script>
<div id="div1">
<p id="p1"></p>
</div>
<script>
function namething() {var name = prompt("what is your name")
document.getElementById("p1").innerHTML = "<h1>welcome, " + name + "</h1>" };
//$("#button2").click(function()
function namething2() { alert("yes")
$("div").animate({ height: 0 /*left:"250px" , opacity:"0. 5", right:"500px" */})
});
</script>
<button id="button2" onclick="namething2()">animationtest</button>
<button id="button1" onclick="namething()">click me!</button>
</head>
<script>
</script>
<body>
<p id="animate1">
</p>
<p id="center">hello</p>
</body>
</html>
returning namething2 not defined? did i miss something? please dont ask what i am doing this is just things i am testing things i am not actually trying to do something
<head>when it should be in the<body>. There are other errors as well, including unclosed tags, missing semicolons, etc. Be sure to check your javascript error console. Here's this: jsfiddle.net/Njbst