one click select text area

Website

Supreme Member
Joined
Feb 8, 2008
Messages
1,260
Reaction score
287
how do you highlight a text area in FBML with one click? I haven't been able to figure this out
 
Code:
<script type="text/javascript">
function SelectAll(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).select();
}
</script>


<textarea style="width: 400px; height: 75px;" id="txtarea" onClick="SelectAll('txtarea');">

your shit

</textarea>
Works great here.
 
Back
Top