Вопрос

I have a textarea and then I try to click Save as draft button or submit button. But when the page submits, the values on my textarea doesn't retain.

<textarea type="text" name="briefDescription" id="briefDescription" rows="12" cols="98" value="${briefDescription}" ></textarea>

Please teach me how to retain values of a textarea.

Thanks!

Это было полезно?

Решение

The content of the textarea should go between its start and end tag:

<textarea type="text" name="briefDescription" id="briefDescription" rows="12" cols="98">$briefDescription</textarea>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top