Javascript examples for jQuery:Form Textarea
Textarea placeholder and change value
<html> <head> <title>Textarea on ajax</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.10.1.js"></script> <script type="text/javascript"> $(function(){//from ww w .ja v a2 s . c o m $('#Message').val("Works"); }); </script> </head> <body> <textarea cols="20" id="Message" name="Message" rows="2" style="width:500px;" placeholder="type in..."></textarea> </body> </html>