I building my own simple article management system, and have run into a bit of trouble upon creating a page to edit the articles.
I am able to recall the title and tagline of the articles in the form input using the 'value' attribute.
However, I am yet to work out how to do the same thing with the form textarea as it has no 'value' attribute.
Also, can the same be done with a dropdown menu in the HTML form select?
The textarea
input type does not have a value field, the value must be placed within the tag itself. For example:
<textarea>Here are the contents of the textarea</textarea>
To populate the select field, the syntax would be:
<select> <option value="value1">Value 1</option> </select>