Select the text in text area : TextArea : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » TextArea »

 

Select the text in text area



    
<html>
<body>
<script language="JavaScript">
    function function2() {
        document.all.myTextArea.select();
    }
</script>
<textarea id=myTextArea>Some text</textarea>
<input type="button" value='Select the textarea' onclick="function2()">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» TextArea