textarea in form code example

Example 1: html textarea

Example 2: html set textarea value

// To set the textarea value, you must insert the TEXT into the element.

// javascript
var textarea = ``;
document.getElementById('my_textarea_id').textContent = 'foo'
// php
$value = 'foo';
$textarea = "";
echo $textarea;

Example 3: html input textarea

Check this:
https://codepen.io/DevLorenzo/pen/wvzNPKz

Example 4: form::textarea

{!! Form::textarea('placeOfDeath',null,['class'=>'form-control', 'rows' => 2, 'cols' => 40]) !!}

Tags:

Misc Example