<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Limitar caracteres en textarea con javascript</title>
	<atom:link href="http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/</link>
	<description>Redes Sociales, WordPress, Desarrollo Web, SEO</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:09:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: erik</title>
		<link>http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/comment-page-1/#comment-2195</link>
		<dc:creator>erik</dc:creator>
		<pubDate>Wed, 13 Jul 2011 20:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://craftyman.net/?p=341#comment-2195</guid>
		<description>Pero si doy clic derecho pegar y pego un texto mayor si se pega.... como se resuelve</description>
		<content:encoded><![CDATA[<p>Pero si doy clic derecho pegar y pego un texto mayor si se pega&#8230;. como se resuelve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MANCHESTER</title>
		<link>http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/comment-page-1/#comment-773</link>
		<dc:creator>MANCHESTER</dc:creator>
		<pubDate>Mon, 03 May 2010 06:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://craftyman.net/?p=341#comment-773</guid>
		<description>CODIKAZO CARNAL, DE LUJO</description>
		<content:encoded><![CDATA[<p>CODIKAZO CARNAL, DE LUJO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrique Reyes</title>
		<link>http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/comment-page-1/#comment-484</link>
		<dc:creator>Enrique Reyes</dc:creator>
		<pubDate>Mon, 11 Jan 2010 20:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://craftyman.net/?p=341#comment-484</guid>
		<description>Muy bueno, exactamente lo que buscaba...</description>
		<content:encoded><![CDATA[<p>Muy bueno, exactamente lo que buscaba&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fiurer87</title>
		<link>http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/comment-page-1/#comment-331</link>
		<dc:creator>fiurer87</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://craftyman.net/?p=341#comment-331</guid>
		<description>Yo sugiero usar esta función en Javascript (para limitar cantidad de caracteres), que recibe como parametros: &#039;id&#039; (id de la caja de texto o cualquier componente en el que se pueda escribir) y &#039;max&#039; (cantidad máxima de caracteres).

Este el código de la funcion:

function limitarCajaTexto(max, id){
	if(max &lt; document.getElementById(id).value.length )
			document.getElementById(id).value = document.getElementById(id).value.substr(0, max);
}

Para aplicar al ejemplo seria de la siguiente manera:


Limitado a 25 caracteres



Espero les sirva.</description>
		<content:encoded><![CDATA[<p>Yo sugiero usar esta función en Javascript (para limitar cantidad de caracteres), que recibe como parametros: &#8216;id&#8217; (id de la caja de texto o cualquier componente en el que se pueda escribir) y &#8216;max&#8217; (cantidad máxima de caracteres).</p>
<p>Este el código de la funcion:</p>
<p>function limitarCajaTexto(max, id){<br />
	if(max &lt; document.getElementById(id).value.length )<br />
			document.getElementById(id).value = document.getElementById(id).value.substr(0, max);<br />
}</p>
<p>Para aplicar al ejemplo seria de la siguiente manera:</p>
<p>Limitado a 25 caracteres</p>
<p>Espero les sirva.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mario eduardo</title>
		<link>http://craftyman.net/limitar-caracteres-en-textarea-con-javascript/comment-page-1/#comment-241</link>
		<dc:creator>mario eduardo</dc:creator>
		<pubDate>Mon, 24 Aug 2009 16:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://craftyman.net/?p=341#comment-241</guid>
		<description>esta solucion de limitar caracteres en textarea con javascript esta excelente... felicitaciones.....</description>
		<content:encoded><![CDATA[<p>esta solucion de limitar caracteres en textarea con javascript esta excelente&#8230; felicitaciones&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

