<?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: Limpiar todos los campos de un formulario con JQuery</title>
	<atom:link href="http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/</link>
	<description>Aqui hablamos de diseño web, photoshop, jquery, php, Linux y Mac</description>
	<pubDate>Sat, 19 May 2012 19:38:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Emmanuel</title>
		<link>http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/comment-page-1/#comment-9557</link>
		<dc:creator>Emmanuel</dc:creator>
		<pubDate>Tue, 13 Mar 2012 16:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jesusyepes.com/?p=432#comment-9557</guid>
		<description>YO LO HARÍA ASÍ:

function limpiaForm(miForm) {
      // recorremos todos los campos que tiene el formulario
      $(’:input’, miForm).each(function() {

      var type = this.type;
      var tag = this.tagName.toLowerCase();

      switch (type) { 
   	case "checkbox": 
      	    this.checked = false;
      	    break;
   	case "radio": 
      	    this.checked = false;
      	    break;
   	default: 
      	    this.value = "";
      }
      switch (tag) { 
   	case "textarea": 
      	    this.value = "";
      	    break;
   	case "select": 
      	    this.selectedIndex = -1;
      	    break;
   	default:
      	    ;//No hago nada
      }

   });//FIN EACH

}//FIN FUNCIÓN</description>
		<content:encoded><![CDATA[<p>YO LO HARÍA ASÍ:</p>
<p>function limpiaForm(miForm) {<br />
      // recorremos todos los campos que tiene el formulario<br />
      $(’:input’, miForm).each(function() {</p>
<p>      var type = this.type;<br />
      var tag = this.tagName.toLowerCase();</p>
<p>      switch (type) {<br />
   	case &#8220;checkbox&#8221;:<br />
      	    this.checked = false;<br />
      	    break;<br />
   	case &#8220;radio&#8221;:<br />
      	    this.checked = false;<br />
      	    break;<br />
   	default:<br />
      	    this.value = &#8220;&#8221;;<br />
      }<br />
      switch (tag) {<br />
   	case &#8220;textarea&#8221;:<br />
      	    this.value = &#8220;&#8221;;<br />
      	    break;<br />
   	case &#8220;select&#8221;:<br />
      	    this.selectedIndex = -1;<br />
      	    break;<br />
   	default:<br />
      	    ;//No hago nada<br />
      }</p>
<p>   });//FIN EACH</p>
<p>}//FIN FUNCIÓN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocio</title>
		<link>http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/comment-page-1/#comment-9434</link>
		<dc:creator>Rocio</dc:creator>
		<pubDate>Wed, 07 Mar 2012 01:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jesusyepes.com/?p=432#comment-9434</guid>
		<description>Pero esto como se agrega al HTML? eso me confunde un poco con Jquery. Deberias hacer un ejemplo sencillo..</description>
		<content:encoded><![CDATA[<p>Pero esto como se agrega al HTML? eso me confunde un poco con Jquery. Deberias hacer un ejemplo sencillo..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Software de Historia Clinica</title>
		<link>http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/comment-page-1/#comment-7797</link>
		<dc:creator>Software de Historia Clinica</dc:creator>
		<pubDate>Fri, 16 Dec 2011 19:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jesusyepes.com/?p=432#comment-7797</guid>
		<description>Excelente informacion en solo un par de minutos de seguir tu guia lo implemente, buena explicacion gracias</description>
		<content:encoded><![CDATA[<p>Excelente informacion en solo un par de minutos de seguir tu guia lo implemente, buena explicacion gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/comment-page-1/#comment-1544</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 16 Jul 2010 20:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jesusyepes.com/?p=432#comment-1544</guid>
		<description>@pablo: pues mira, ni se me había ocurrido. A veces, siempre hay una solución más simple (aunque esta vez ha sido exagerado!). Lo agrego, gracias</description>
		<content:encoded><![CDATA[<p>@pablo: pues mira, ni se me había ocurrido. A veces, siempre hay una solución más simple (aunque esta vez ha sido exagerado!). Lo agrego, gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablo</title>
		<link>http://blog.jesusyepes.com/jquery/limpiar-todos-los-campos-de-un-formulario-con-jquery/comment-page-1/#comment-1542</link>
		<dc:creator>pablo</dc:creator>
		<pubDate>Fri, 16 Jul 2010 13:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jesusyepes.com/?p=432#comment-1542</guid>
		<description>$('form')[0].reset();</description>
		<content:encoded><![CDATA[<p>$(&#8217;form&#8217;)[0].reset();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

