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>



Reply With Quote


