I'm trying to add content to a div every time a link is clicked. However, the added text dissapears immediately after being added. What am I doing wrong?
<html>
<head>
<script type="text/javascript" src="/files/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
$("#questions").prepend("A question<br />");
});
});
</script>
</head>
<body>
<a href="">Add</a>
<p id = "questions"> </div>
</body>
</html>