Hello friends, Today in this video we will see How to get value from Textarea in javascript | Textarea value in JavaScript in Hindi.
Please watch full and after watching this video share it with your friends on Facebook or Whatsapp and do subscribe for upcoming videos.


How to get value from textarea in javascript


Code container, you can download it

<!DOCTYPE html> <html> <head> <title>How to get value of textarea in JavaScript</title> </head> <body> <center><h1>How to get value of textarea in JavaScript</h1></center> <hr> <br> <center><textarea id="input_data" style="height: 150px; width: 400px;"></textarea><br> <button onclick="getData()">Submit</button></center><br><hr> <center><h4>Result will be display here</h4></center> <p id="result"></p> </body> <script> function getData(){ var data = document.getElementById("input_data").value; document.getElementById("result").innerHTML=data; } </script> </html>

Leave a Reply

Your email address will not be published.