Follow Us

Saturday 23 March 2013

How to create a Text Area will Select All Button

Copy the code without selection button

<textarea cols="40" rows="5" style="height: 108px; width: 441px;">Welcome to All About Education.</textarea><br />
But change welcome to All About Education.


<div dir="ltr" style="text-align: left;" trbidi="on">

<form name="copy">
<div align="center">
<input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="Select All" /> </div>
<div align="center">
</div>
<div align="center">
<textarea cols="55" name="txt" rows="100" style="height: 144px; width: 300px;" wrap="VIRTUAL">Welcome to All About Education</textarea><br />
<br /></div>
</form>
</div>



But change welcome to All About Education.

No comments:

Post a Comment