Quantcast
Channel: VBForums - jQuery
Viewing all articles
Browse latest Browse all 69

[RESOLVED] jquery display text

$
0
0
hi gurus,

need your help. I had tried making this simple html with jquery.

I want to display the text on the input button to the text area simultaneously.

how do i do it? please check code below which I had started. Thank you.

Code:

<!DOCTYPE html>
<html>
<head>

<style>
 <script src="http://code.jquery.com/jquery-latest.js"></script>
</style>

</head>

<body>

 <form>
  <fieldset>
    <label for="target">Type Something:</label>
    <input id="target" type="text" />
  </fieldset>
</form>

<form name="display_form">

<textarea id="txtdisp" rows="2" cols="20">

</textarea>
</form>

<script>
 
var txt= $("#target").val();

 onKeyUp="display_form.form.txtdisp.value=txt";

</script>

</body>
</html>


Viewing all articles
Browse latest Browse all 69

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>