<?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>Comments on: How to .reset() form with jQuery</title>
	<atom:link href="http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/</link>
	<description>simple things, simple notes</description>
	<pubDate>Sun, 05 Feb 2012 11:37:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: kevin</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3686</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Sat, 15 Oct 2011 13:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3686</guid>
		<description>Good article but I agree with Konstantin, you don't need to create a function just to do this. Also, you should look into custom jQuery functions rather than using vanilla javascript for this. Just a thought.</description>
		<content:encoded><![CDATA[<p>Good article but I agree with Konstantin, you don&#8217;t need to create a function just to do this. Also, you should look into custom jQuery functions rather than using vanilla javascript for this. Just a thought.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Your Marge</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3683</link>
		<dc:creator>Your Marge</dc:creator>
		<pubDate>Wed, 05 Oct 2011 20:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3683</guid>
		<description>Is not workink for me, what does it mean $(”my-reset-button”)?</description>
		<content:encoded><![CDATA[<p>Is not workink for me, what does it mean $(”my-reset-button”)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3678</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 01 Jul 2011 23:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3678</guid>
		<description>It wasn't working for me until i moved the reset command from after a .prepend to before it. I guess don't change any of the page content before attempting the form reset.</description>
		<content:encoded><![CDATA[<p>It wasn&#8217;t working for me until i moved the reset command from after a .prepend to before it. I guess don&#8217;t change any of the page content before attempting the form reset.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3675</link>
		<dc:creator>Marek</dc:creator>
		<pubDate>Sun, 17 Apr 2011 23:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3675</guid>
		<description>just place somewhere in form  button will be invisible and not clicable but:
anywhere in you scrip you can use: $("my-reset-button"),click()
I'm tested it today - it works !

brgds, Marek</description>
		<content:encoded><![CDATA[<p>just place somewhere in form  button will be invisible and not clicable but:<br />
anywhere in you scrip you can use: $(&#8221;my-reset-button&#8221;),click()<br />
I&#8217;m tested it today - it works !</p>
<p>brgds, Marek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CB</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3659</link>
		<dc:creator>CB</dc:creator>
		<pubDate>Tue, 26 Oct 2010 15:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3659</guid>
		<description>My shot:
        $(resetSelector).bind('click', function (event) {
            event.preventDefault();
            if(confirm("Reset form?")) {
                $(this).closest('form').get(0).reset();
            }
        });</description>
		<content:encoded><![CDATA[<p>My shot:<br />
        $(resetSelector).bind(&#8217;click&#8217;, function (event) {<br />
            event.preventDefault();<br />
            if(confirm(&#8221;Reset form?&#8221;)) {<br />
                $(this).closest(&#8217;form&#8217;).get(0).reset();<br />
            }<br />
        });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axalix</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3655</link>
		<dc:creator>Axalix</dc:creator>
		<pubDate>Sat, 17 Jul 2010 18:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3655</guid>
		<description>well, it would better is everybody use all-around jQuery style, what means that correct solution is

$(’#myform’).get(0).reset();</description>
		<content:encoded><![CDATA[<p>well, it would better is everybody use all-around jQuery style, what means that correct solution is</p>
<p>$(’#myform’).get(0).reset();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ดูหนัง</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3643</link>
		<dc:creator>ดูหนัง</dc:creator>
		<pubDate>Mon, 08 Mar 2010 07:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3643</guid>
		<description>Thanks a lot for a good idea.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for a good idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deny</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3638</link>
		<dc:creator>deny</dc:creator>
		<pubDate>Thu, 28 Jan 2010 21:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3638</guid>
		<description>it work =&#62; $('#myform')[0].reset()
Thanks for the idea</description>
		<content:encoded><![CDATA[<p>it work =&gt; $(&#8217;#myform&#8217;)[0].reset()<br />
Thanks for the idea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno Soares</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3634</link>
		<dc:creator>Bruno Soares</dc:creator>
		<pubDate>Tue, 12 Jan 2010 18:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3634</guid>
		<description>only this:

$(’form’)[0].reset();

get the form element.... and not the specific form directly: ('#myform')</description>
		<content:encoded><![CDATA[<p>only this:</p>
<p>$(’form’)[0].reset();</p>
<p>get the form element&#8230;. and not the specific form directly: (&#8217;#myform&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DownsTream</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3625</link>
		<dc:creator>DownsTream</dc:creator>
		<pubDate>Sat, 05 Dec 2009 10:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3625</guid>
		<description>Thanks...

easy solution but it work!!!</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;</p>
<p>easy solution but it work!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prabhakaran</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3595</link>
		<dc:creator>prabhakaran</dc:creator>
		<pubDate>Mon, 23 Nov 2009 19:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3595</guid>
		<description>add this at the end of the form
&#60;div style="display='none'" &#62;&#60;input type="reset" id="rst_form"&#62;&#60;/div&#62;

and try this,
$('#rst_form').click()</description>
		<content:encoded><![CDATA[<p>add this at the end of the form<br />
&lt;div style=&#8221;display=&#8217;none&#8217;&#8221; &gt;&lt;input type=&#8221;reset&#8221; id=&#8221;rst_form&#8221;&gt;&lt;/div&gt;</p>
<p>and try this,<br />
$(&#8217;#rst_form&#8217;).click()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prabhakaran</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3594</link>
		<dc:creator>prabhakaran</dc:creator>
		<pubDate>Mon, 23 Nov 2009 19:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3594</guid>
		<description>add this at the end of the form


and try this,
$('#rst_form').click()</description>
		<content:encoded><![CDATA[<p>add this at the end of the form</p>
<p>and try this,<br />
$(&#8217;#rst_form&#8217;).click()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lover of Sadness</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3534</link>
		<dc:creator>Lover of Sadness</dc:creator>
		<pubDate>Tue, 17 Nov 2009 18:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3534</guid>
		<description>this doesnt work..
someone please help...</description>
		<content:encoded><![CDATA[<p>this doesnt work..<br />
someone please help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3479</link>
		<dc:creator>Raymond</dc:creator>
		<pubDate>Mon, 14 Sep 2009 06:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3479</guid>
		<description>"$(’#myFormId’)[0].reset();"

Thanks Konstantin, easy solution</description>
		<content:encoded><![CDATA[<p>&#8220;$(’#myFormId’)[0].reset();&#8221;</p>
<p>Thanks Konstantin, easy solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konstantin</title>
		<link>http://simple.procoding.net/2008/11/22/how-to-reset-form-with-jquery/#comment-3473</link>
		<dc:creator>Konstantin</dc:creator>
		<pubDate>Sun, 26 Jul 2009 18:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/?p=40#comment-3473</guid>
		<description>Wha-ha! Just use

$('#myFormId')[0].reset();</description>
		<content:encoded><![CDATA[<p>Wha-ha! Just use</p>
<p>$(&#8217;#myFormId&#8217;)[0].reset();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

