- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to set the content of a textarea using jQuery?
On clicking the <a> tag,the content is dispaying inside the textarea.
Example
<script type="text/javascript"> $(document).ready(function () { $("a").click(function () { $("#txt1").val("I AM DISPLAYING IN THE TEXTAREA"); }); }); </script> <body> <div> <a id="quiresweb" class="webclass" href="#">Quires</a><br /> <label id="lbl">TEXTAREA ::</label> <textarea id="txt1" rows="5" cols="20"></textarea><br /> </div> </body>
- Related Articles
- How to get the content of a textarea using jQuery?
- How to set HTML content of an element using jQuery?
- How to set textarea scroll bar to bottom as a default using JavaScript/jQuery?
- How can I set the content of an iframe without src using jQuery?
- How to detect Ctrl+Enter in textarea using jQuery?
- How to get the value of div content using jQuery?
- How to replace the content of an element using jQuery?
- How to print div content using jQuery?
- How to make a textarea and input type read only using jQuery?
- How to copy the content of a div into another div using jQuery?
- How to disable copy content function using jQuery?
- How to get HTML content of an element using jQuery?
- How to insert content after each of the matched elements using jQuery?
- How to prepend content to the inside of every matched element using jQuery?
- How to change the shape of a textarea using JavaScript?

Advertisements