Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

I want to set a default value for my HTML <textarea>. I read from a material that to add default value you have to do something like <textarea>This is default text</textarea>. I did that but it doesn't work. What's the right thing to do?

1 Answer

0 votes
by (40.7k points)

Try using this code:

<textarea name='awesome'>Default value</textarea>

For more information, you can refer to this: 

http://jsfiddle.net/8DzCE/1/

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...