<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: jQuery tip: Changing the TYPE attribute of an INPUT element</title>
	<atom:link href="http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
	<description>random musings of just another computer nerd</description>
	<lastBuildDate>Sun, 05 Feb 2012 22:22:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: viper</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-27618</link>
		<dc:creator>viper</dc:creator>
		<pubDate>Thu, 29 Dec 2011 13:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-27618</guid>
		<description>Nolan right the following works like a charm:
event.preventDefault();

Thanks...</description>
		<content:encoded><![CDATA[<p>Nolan right the following works like a charm:<br />
event.preventDefault();</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nolan</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-20712</link>
		<dc:creator>Nolan</dc:creator>
		<pubDate>Thu, 29 Sep 2011 17:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-20712</guid>
		<description>I ran into an issue with this in IE9. It was still throwing an error saying that the type couldn&#039;t be changed. I found a solution that would allow me to still take off the submit action from the button. Here is what I did:

jQuery(&quot;#Submit&quot;).click(function(event) {
        event.preventDefault();
        // do what it is you want to
    });

This will not modify the type of the button, but it will prevent it from submitting. In the case that I was working on, I needed to run an onClick ajax call before the form submitted. So in using the code up there, I was able to prevent the submit, run my ajax, then submit the form from that function.</description>
		<content:encoded><![CDATA[<p>I ran into an issue with this in IE9. It was still throwing an error saying that the type couldn&#8217;t be changed. I found a solution that would allow me to still take off the submit action from the button. Here is what I did:</p>
<p>jQuery(&#8220;#Submit&#8221;).click(function(event) {<br />
        event.preventDefault();<br />
        // do what it is you want to<br />
    });</p>
<p>This will not modify the type of the button, but it will prevent it from submitting. In the case that I was working on, I needed to run an onClick ajax call before the form submitted. So in using the code up there, I was able to prevent the submit, run my ajax, then submit the form from that function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catzie</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-20704</link>
		<dc:creator>Catzie</dc:creator>
		<pubDate>Thu, 29 Sep 2011 07:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-20704</guid>
		<description>finally changed the type of my input field using jquery. thanks!</description>
		<content:encoded><![CDATA[<p>finally changed the type of my input field using jquery. thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angie</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-12759</link>
		<dc:creator>Angie</dc:creator>
		<pubDate>Thu, 24 Feb 2011 18:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-12759</guid>
		<description>Hey thanks for this post, was a big help!</description>
		<content:encoded><![CDATA[<p>Hey thanks for this post, was a big help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michon</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-12188</link>
		<dc:creator>michon</dc:creator>
		<pubDate>Mon, 07 Feb 2011 14:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-12188</guid>
		<description>&lt;a href=&quot;#comment-11915&quot; rel=&quot;nofollow&quot;&gt;@aSeptik &lt;/a&gt; 

oui... sous firefox cela fonctionne, mais IE ne reconnait pas cette commande.</description>
		<content:encoded><![CDATA[<p><a href="#comment-11915" rel="nofollow">@aSeptik </a> </p>
<p>oui&#8230; sous firefox cela fonctionne, mais IE ne reconnait pas cette commande.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aSeptik</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-11915</link>
		<dc:creator>aSeptik</dc:creator>
		<pubDate>Sun, 30 Jan 2011 15:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-11915</guid>
		<description>&lt;code&gt;$(&#039;#password&#039;)[0].setAttribute(&#039;type&#039;,&#039;button&#039;);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>$('#password')[0].setAttribute('type','button');</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-7522</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 11 Aug 2010 14:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-7522</guid>
		<description>Internet Explorer was, is and probably will be hopeless...</description>
		<content:encoded><![CDATA[<p>Internet Explorer was, is and probably will be hopeless&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avishkar&#039;s Blog &#187; Cloning and changing the TYPE attribute of an INPUT element</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-6898</link>
		<dc:creator>Avishkar&#039;s Blog &#187; Cloning and changing the TYPE attribute of an INPUT element</dc:creator>
		<pubDate>Sun, 27 Jun 2010 21:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-6898</guid>
		<description>[...] snippet I found here, which was helpful in building Ekkio&#8217;s login [...]</description>
		<content:encoded><![CDATA[<p>[...] snippet I found here, which was helpful in building Ekkio&#8217;s login [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivin</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-3437</link>
		<dc:creator>vivin</dc:creator>
		<pubDate>Sat, 03 Apr 2010 00:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-3437</guid>
		<description>&lt;a href=&quot;#comment-3190&quot; rel=&quot;nofollow&quot;&gt;@stephenrs &lt;/a&gt; 
Interesting - I have to try this out. I&#039;ll update this post or put up a new post if I figure out how to solve it!</description>
		<content:encoded><![CDATA[<p><a href="#comment-3190" rel="nofollow">@stephenrs </a><br />
Interesting &#8211; I have to try this out. I&#8217;ll update this post or put up a new post if I figure out how to solve it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephenrs</title>
		<link>http://vivin.net/2009/05/26/jquery-tip-changing-the-type-attribute-of-an-input-element/comment-page-1/#comment-3190</link>
		<dc:creator>stephenrs</dc:creator>
		<pubDate>Thu, 01 Apr 2010 23:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=409#comment-3190</guid>
		<description>I used this solution with success in the past, but now it appears that the latest version of jQuery throws an exception when you try to set the type attribute on an element in IE, even if it has not been added to the DOM yet. This seems like a bug in jQuery to me....any ideas for how to get around this?</description>
		<content:encoded><![CDATA[<p>I used this solution with success in the past, but now it appears that the latest version of jQuery throws an exception when you try to set the type attribute on an element in IE, even if it has not been added to the DOM yet. This seems like a bug in jQuery to me&#8230;.any ideas for how to get around this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

