<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BittBox &#187; Javascript</title>
	<atom:link href="http://www.bittbox.com/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bittbox.com</link>
	<description>Free Design Resources including free vectors, buttons, icons, fading corners, quick tips, tutorials and more.</description>
	<lastBuildDate>Tue, 16 Mar 2010 23:02:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Click to Hightlight all text: It&#8217;s Easier than you think.</title>
		<link>http://www.bittbox.com/javascript/click-to-hightlight-all-text-javascript</link>
		<comments>http://www.bittbox.com/javascript/click-to-hightlight-all-text-javascript#comments</comments>
		<pubDate>Sun, 07 Jan 2007 10:46:43 +0000</pubDate>
		<dc:creator>Jay Hilgert</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.bittbox.com/blog/?p=18</guid>
		<description><![CDATA[If you want your users to click on a text area and automatically highlight all of the text, there is a very simple way to do it. This does not require external javascript at all. It&#8217;s no &#34;copy code&#34; button, but if the user clicks inside the text area, this bitt of code will hightlight [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bittbox.com%2Fjavascript%2Fclick-to-hightlight-all-text-javascript"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bittbox.com%2Fjavascript%2Fclick-to-hightlight-all-text-javascript" height="61" width="51" /></a></div><p>If you want your users to click on a text area and automatically highlight all of the text, there is a very simple way to do it. This does not require external javascript at all. It&#8217;s no &quot;copy code&quot; button, but if the user clicks inside the text area, this bitt of code will hightlight all of the text in that textfield. </p>
<p>Add the following code to any &lt; textarea &gt; tag: </p>
<p><span id="more-18"></span></p>
<blockquote>
<p>onclick=&quot;javascript:select();&quot;</p>
</blockquote>
<p>Example:</p>
<p>&lt;textarea cols=&quot;50&quot; rows=&quot;3&quot; onclick=&quot;javascript:select();&quot;&gt; Highlight this text&lt;/textarea&gt;</p>
<p>  <textarea cols="50" rows="3" onclick="javascript:select();">Highlight this text</textarea></p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bittbox.com/javascript/click-to-hightlight-all-text-javascript/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
