Properly done and with the "Select All" function:
Code:
<p><a class="selectall" href="#" onclick="document ^^ .getElementById('postemail') ^^ .select(); return false">Select All</a><br><textarea id="postemail" style="background: transparent;" rows="8" cols="35">Your Text Here</textarea></p>
Select All
If using the Select All function in more than one text box on the same page, just change "onclick="document ^^ .getElementById ^^ ('postemail')" to "onclick="document. ^^ getElementById ^^ ('postemail2')" and change "<textarea id="postemail"" to "<textarea id="postemail2"." Do this for each added textarea box incrementing the "Id" value in both places.
Added this (" ^^ ") to the longer code as YA shortens it. Remove the space before and after "^^" for the correct code.
Code:
<p><a class="selectall" href="#" onclick="document ^^ .getElementById('postemail') ^^ .select(); return false">Select All</a><br><textarea id="postemail" style="background: transparent;" rows="8" cols="35">Your Text Here</textarea></p>
Select All
If using the Select All function in more than one text box on the same page, just change "onclick="document ^^ .getElementById ^^ ('postemail')" to "onclick="document. ^^ getElementById ^^ ('postemail2')" and change "<textarea id="postemail"" to "<textarea id="postemail2"." Do this for each added textarea box incrementing the "Id" value in both places.
Added this (" ^^ ") to the longer code as YA shortens it. Remove the space before and after "^^" for the correct code.
0 comments:
Post a Comment