As the title said, how would I get text from a input tag and show it dynamicly. So whenever i press a, it shows up in a p tag. How would I do this in jQuery?
EDIT: Here is what I have but its not working:
<html>
<head>
<title>update text realtime</title>
<script type="text/javascript">
update(src) {
var a = src.value;
document.getElementById("text").innerHTML = a;
}
</script>
</head>
<body>
<input type="text" name="in" onKeyUp="update(this);" />
<br />
<p id="text"></p>
</body>
</html>