jQuery Get Set Textarea text value
home
Run
screen_rotation
fullscreen
cloud_download
navigate_before
<!DOCTYPE html> <html> <head> <title>jQuery Scrolltop Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> function setTextareaVal(){ var text = "New Text"; $('#myTextarea').val(text); } </script> </head> <body> <form action=""> <textarea id="myTextarea"> </textarea> </form> <h4 ><a href="javascript:void(0);" onclick="setTextareaVal()" >Set Textarea Text </a></h4> </body> </html>
<!DOCTYPE html> <html> <head> <title>jQuery Scrolltop Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> function setTextareaVal(){ var text = "New Text"; $('#myTextarea').val(text); } </script> </head> <body> <form action=""> <textarea id="myTextarea"> </textarea> </form> <h4 ><a href="javascript:void(0);" onclick="setTextareaVal()" >Set Textarea Text </a></h4> </body> </html>
Copyrights@tutorialsplane.com