Textarea placeholder and change value - Javascript jQuery

Javascript examples for jQuery:Form Textarea

Description

Textarea placeholder and change value

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials