<?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"
	>
<channel>
	<title>Comentarios en: Obtener y establecer valores de campos input con JQuery</title>
	<atom:link href="http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/</link>
	<description>Analista desarrollador web freelance</description>
	<pubDate>Thu, 20 Nov 2008 14:00:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Por: Asier Marqués</title>
		<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-13224</link>
		<dc:creator>Asier Marqués</dc:creator>
		<pubDate>Wed, 19 Mar 2008 12:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-13224</guid>
		<description>@Rob gracias por la aportación, desde luego es más sencillo hacerlo así.

Un saludo ;)</description>
		<content:encoded><![CDATA[<p>@Rob gracias por la aportación, desde luego es más sencillo hacerlo así.</p>
<p>Un saludo <img src='http://asiermarques.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Rob</title>
		<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-13219</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 19 Mar 2008 09:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-13219</guid>
		<description>Hola,

me gustaría matizar algo sobre el artículo que, aunque correcto, puede llevar a confusión. 

Para obtener el valor de un elemento con un id="identificador" lo más correcto sería poner: 

$("#identificador").val(); 

Ya que entendemos que el nombre del identificador es único.


De la misma manera, para establecer un valor de un campo input lo haremos así:

$("#identificador").val('valor para éste input');

Espero haber ayudado a aclarar un poco las cosas :)</description>
		<content:encoded><![CDATA[<p>Hola,</p>
<p>me gustaría matizar algo sobre el artículo que, aunque correcto, puede llevar a confusión. </p>
<p>Para obtener el valor de un elemento con un id=&#8221;identificador&#8221; lo más correcto sería poner: </p>
<p>$(&#8221;#identificador&#8221;).val(); </p>
<p>Ya que entendemos que el nombre del identificador es único.</p>
<p>De la misma manera, para establecer un valor de un campo input lo haremos así:</p>
<p>$(&#8221;#identificador&#8221;).val(&#8217;valor para éste input&#8217;);</p>
<p>Espero haber ayudado a aclarar un poco las cosas <img src='http://asiermarques.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Asier Marqués</title>
		<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12924</link>
		<dc:creator>Asier Marqués</dc:creator>
		<pubDate>Wed, 20 Feb 2008 13:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12924</guid>
		<description>@Armando es una cita muy conocida y tiene toda la razón.

Me alegro que te guste mi blog, un saludo ;)</description>
		<content:encoded><![CDATA[<p>@Armando es una cita muy conocida y tiene toda la razón.</p>
<p>Me alegro que te guste mi blog, un saludo <img src='http://asiermarques.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Armando</title>
		<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12922</link>
		<dc:creator>Armando</dc:creator>
		<pubDate>Wed, 20 Feb 2008 12:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12922</guid>
		<description>Por cierto, me gusta mucho tu blog. Lo he descubierto recientemente e inmediatamente lo he incluido en mi Google Reader.

Me encantó la cita:
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live"
y cotilleando la encontré aquí: http://www.sysprog.net/quotmain.html</description>
		<content:encoded><![CDATA[<p>Por cierto, me gusta mucho tu blog. Lo he descubierto recientemente e inmediatamente lo he incluido en mi Google Reader.</p>
<p>Me encantó la cita:<br />
&#8220;Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live&#8221;<br />
y cotilleando la encontré aquí: <a href="http://www.sysprog.net/quotmain.html" rel="nofollow">http://www.sysprog.net/quotmain.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Asier Marqués</title>
		<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12921</link>
		<dc:creator>Asier Marqués</dc:creator>
		<pubDate>Wed, 20 Feb 2008 12:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12921</guid>
		<description>@Armando, para obtener el valor si, es otra opción.

Gracias por comentarlo.</description>
		<content:encoded><![CDATA[<p>@Armando, para obtener el valor si, es otra opción.</p>
<p>Gracias por comentarlo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Armando</title>
		<link>http://asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12920</link>
		<dc:creator>Armando</dc:creator>
		<pubDate>Wed, 20 Feb 2008 11:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.asiermarques.com/2008/02/20/obtener-y-establecer-valores-de-campos-input-con-jquery/#comment-12920</guid>
		<description>Hola Asier!

¿No es mejor utilizar la función val?
http://docs.jquery.com/Attributes/val

Un saludo!</description>
		<content:encoded><![CDATA[<p>Hola Asier!</p>
<p>¿No es mejor utilizar la función val?<br />
<a href="http://docs.jquery.com/Attributes/val" rel="nofollow">http://docs.jquery.com/Attributes/val</a></p>
<p>Un saludo!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
