Hello Friends, I need your help.Please see the attached image.I want to copy the TextBox text to TextArea but not in the complete text box.Like I had showed in the image.Its little challenging though.Because,I had searched all over but didn't solution for this.I think it only be possible with PHP. Hope Get the Solution Soon...
Hi, I am not sure whether I completely get your issue. But here's what I have done for you: jQuery Code: // the original msg var msg = "Hello {name}, welcome to DP. How are you ?"; $(document).ready(function(){ // when user types something in the textbox $('#username').keyup(function(){ var uname = $(this).val(); // get the value typed in it $('#msg').val(msg.replace('{name}', uname)); // insert the name in msg and display it }); });​ Code (markup): HTML: Name: <input type="text" id="username" /> <br /> Msg: <textarea id="msg"></textarea> Code (markup): Here's the fiddle for online testing: http://jsfiddle.net/9kFLU/ Hope it helps