Highlight textarea on click

Highlight textarea on click

//this is the script
function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}

//add this to your textarea or input field
textarea: id="txtarea" onClick="SelectAll('txtarea');"
input: type="text" id="txtfld" onClick="SelectAll('txtfld');"

How to send email confirmation after form submission
Connecting to a database
Displaying database results
How to use an array
How to edit and replace data
Number format in PHP
Convert unix timestamp to Excel
Combine padding into one single line using CSS
Displaying year using PHP
404 redirect using htaccess
Highlight textarea on click
Htaccess maintenance redirect
Comment out lines in a htaccess file