Answers for "text area select"

1

select all text in textarea javascript

<textarea onclick="this.focus();this.select()"></textarea>

<!-- To copy the text -->
<textarea onclick="this.focus();this.select();document.execCommand('copy')"></textarea>
Posted by: Guest on June-27-2020
0

fil text are with select html textarea

My Code:
<div text-angular="text-angular" name="htmlcontent" ng-model="htmlcontent" ta-disabled='disabled'></div>
<p>
  <textarea type="text" id="message" ng-model="htmlcontent" required="required" style="display: block;" name="message" required /></textarea>
</p>
</div>
HTML JSFIDDLE:

<select id="dropdown">
    <option value="">None</option>
    <option value="text1">text1</option>
    <option value="text2">text2</option>
    <option value="text3">text3</option>
    <option value="text4">text4</option>
</select>
Posted by: Guest on March-24-2021

Browse Popular Code Answers by Language