how to attach the text area


how to attach the text area 







1. How to Create Text Area with Select All

for menshort all content in the text area to select all button

ways:

1.Log in to your dashboard -> Layout -> Edit HTML

2.Scroll where you can see the code </ head> tag.note / * use Ctrl F to find * /

3.Now add the code below before </ head> tag.


<script type="text/javascript">

function selectAll()

{

document.form1.demo.focus();

document.form1.demo.select();

}

</script>


and below the text area code for your

<form name="form1" >

<textarea cols="25" rows="10" name="demo">

TEXT AREA

</textarea>

<input type="button" name="selectit" value="Select All" onclick="selectAll ();">

</form>


Note: change Text Area with your content"









2. How to Create Text Area With More Automatic mouse highlight

code:

<textarea rows="5" cols="15" onfocus="this.select()" onmouseover="this.focus()" style="display: inline;" name="txt" onclick="this.focus();this.select()">

Enter Your Content Here

</textarea>


demo:








Labels: