<?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: jQuery: Disabled and ReadOnly Inputs</title>
	<atom:link href="http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/feed/" rel="self" type="application/rss+xml" />
	<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/</link>
	<description>Web development, tutorials, video games, papercraft, and technology</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:24:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mark</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2708</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 22 Jul 2010 02:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2708</guid>
		<description>It&#039;s very nice article
Thank you very much.
It work in firefox as well as IE</description>
		<content:encoded><![CDATA[<p>It&#8217;s very nice article<br />
Thank you very much.<br />
It work in firefox as well as IE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: restroika</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2693</link>
		<dc:creator>restroika</dc:creator>
		<pubDate>Tue, 15 Jun 2010 08:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2693</guid>
		<description>-- thanks -- 
anda membaca pikiranku..</description>
		<content:encoded><![CDATA[<p>&#8211; thanks &#8212;<br />
anda membaca pikiranku..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranju</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2681</link>
		<dc:creator>Ranju</dc:creator>
		<pubDate>Fri, 04 Jun 2010 04:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2681</guid>
		<description>Hi,

I am able to disable my datalist using this code in IE, but its not working in Mozilla. Can anybody help me plz....

Thanks

Ranju</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am able to disable my datalist using this code in IE, but its not working in Mozilla. Can anybody help me plz&#8230;.</p>
<p>Thanks</p>
<p>Ranju</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JQuery &#8211; Disable form input &#171; MarkRoper&#39;s Blog</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2638</link>
		<dc:creator>JQuery &#8211; Disable form input &#171; MarkRoper&#39;s Blog</dc:creator>
		<pubDate>Fri, 05 Mar 2010 02:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2638</guid>
		<description>[...] $(&#039;#readonly&#039;).click(  function()  {      if ($(&#039;#readonly&#039;).attr(&quot;readonly&quot;) == true)      {          $(&#039;#readonly&#039;).val(&#039;&#039;);          $(&#039;#readonly&#039;).removeAttr(&quot;readonly&quot;);      }  });   http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/ [...]</description>
		<content:encoded><![CDATA[<p>[...] $(&#39;#readonly&#39;).click(  function()  {      if ($(&#39;#readonly&#39;).attr(&quot;readonly&quot;) == true)      {          $(&#39;#readonly&#39;).val(&#39;&#39;);          $(&#39;#readonly&#39;).removeAttr(&quot;readonly&quot;);      }  });   <a href="http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/" rel="nofollow">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete castillo</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2592</link>
		<dc:creator>pete castillo</dc:creator>
		<pubDate>Fri, 02 Oct 2009 04:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2592</guid>
		<description>To disable in IE, add change the following css setting so that you can visually distinguish a disabled field.  You may only want to do this for IE...(as mark previously mentioned IE doesn&#039;t give visual cues when a field is disabled):

if (bEnable) {
	$(&#039;#ctrl_id&#039;).attr(&#039;disabled&#039;, true);
	$(&#039;#ctrl_id&#039;).css(&#039;background-color&#039;, &#039;#e0e0e0&#039;);
} else {
	$(&#039;#ctrl_id&#039;).removeAttr(&#039;disabled&#039;);
	$(&#039;#ctrl_id&#039;).css(&#039;background-color&#039;, &#039;#ffffff&#039;);
}</description>
		<content:encoded><![CDATA[<p>To disable in IE, add change the following css setting so that you can visually distinguish a disabled field.  You may only want to do this for IE&#8230;(as mark previously mentioned IE doesn&#8217;t give visual cues when a field is disabled):</p>
<p>if (bEnable) {<br />
	$(&#8216;#ctrl_id&#8217;).attr(&#8216;disabled&#8217;, true);<br />
	$(&#8216;#ctrl_id&#8217;).css(&#8216;background-color&#8217;, &#8216;#e0e0e0&#8242;);<br />
} else {<br />
	$(&#8216;#ctrl_id&#8217;).removeAttr(&#8216;disabled&#8217;);<br />
	$(&#8216;#ctrl_id&#8217;).css(&#8216;background-color&#8217;, &#8216;#ffffff&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas B. Higgins</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2590</link>
		<dc:creator>Thomas B. Higgins</dc:creator>
		<pubDate>Tue, 29 Sep 2009 21:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2590</guid>
		<description>Following Vitali&#039;s example, if you want to disable an input element through the use of a checkbox in a situation where data from a database record is being changed, you can use this code:

$(document).ready(function() {
    // Initialize to match existing (database) status
    // If checked:
    if ($(&quot;#checkbox1&quot;).is(&quot;:checked&quot;)) {
        $(&#039;#input1&#039;).removeAttr(&quot;disabled&quot;);
    }
    // If unchecked:
    else {
        $(&#039;#input1&#039;).attr(&quot;value&quot;, &#039;&#039;);
        $(&#039;#input1&#039;).attr(&quot;disabled&quot;, true);
    }
    // On click of &quot;checkbox1&quot; change value and
    // disabled status of selected field
    $(&quot;#checkbox1&quot;).click(function() {
        // If checked:
        if ($(&quot;#checkbox1&quot;).is(&quot;:checked&quot;)) {
            $(&#039;#input1&#039;).removeAttr(&quot;disabled&quot;);
        }
        // If unchecked:
        else {
            $(&#039;#input1&#039;).attr(&quot;value&quot;, &#039;&#039;);
            $(&#039;#input1&#039;).attr(&quot;disabled&quot;, true);
        }
    });
});

Note that the value of the disabled input element is set to an empty string just prior to being disabled for neatness&#039; sake and to prevent possible confusion on the part of the user caused by a &quot;trapped&quot; value.</description>
		<content:encoded><![CDATA[<p>Following Vitali&#8217;s example, if you want to disable an input element through the use of a checkbox in a situation where data from a database record is being changed, you can use this code:</p>
<p>$(document).ready(function() {<br />
    // Initialize to match existing (database) status<br />
    // If checked:<br />
    if ($(&#8220;#checkbox1&#8243;).is(&#8220;:checked&#8221;)) {<br />
        $(&#8216;#input1&#8242;).removeAttr(&#8220;disabled&#8221;);<br />
    }<br />
    // If unchecked:<br />
    else {<br />
        $(&#8216;#input1&#8242;).attr(&#8220;value&#8221;, &#8221;);<br />
        $(&#8216;#input1&#8242;).attr(&#8220;disabled&#8221;, true);<br />
    }<br />
    // On click of &#8220;checkbox1&#8243; change value and<br />
    // disabled status of selected field<br />
    $(&#8220;#checkbox1&#8243;).click(function() {<br />
        // If checked:<br />
        if ($(&#8220;#checkbox1&#8243;).is(&#8220;:checked&#8221;)) {<br />
            $(&#8216;#input1&#8242;).removeAttr(&#8220;disabled&#8221;);<br />
        }<br />
        // If unchecked:<br />
        else {<br />
            $(&#8216;#input1&#8242;).attr(&#8220;value&#8221;, &#8221;);<br />
            $(&#8216;#input1&#8242;).attr(&#8220;disabled&#8221;, true);<br />
        }<br />
    });<br />
});</p>
<p>Note that the value of the disabled input element is set to an empty string just prior to being disabled for neatness&#8217; sake and to prevent possible confusion on the part of the user caused by a &#8220;trapped&#8221; value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitali</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2580</link>
		<dc:creator>Vitali</dc:creator>
		<pubDate>Tue, 15 Sep 2009 13:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2580</guid>
		<description>If you want disable input element through the use checkbox you can use this code.



$(document).ready(function()
{
	$(&quot;#checkbox1&quot;).click(function() {
		// If checked
		if ($(&quot;#checkbox1&quot;).is(&quot;:checked&quot;))	{
			$(&#039;#input1&#039;).removeAttr(&quot;disabled&quot;);
		} else {
			$(&#039;#input1&#039;).attr(&quot;disabled&quot;, true);
		}
	});
});</description>
		<content:encoded><![CDATA[<p>If you want disable input element through the use checkbox you can use this code.</p>
<p>$(document).ready(function()<br />
{<br />
	$(&#8220;#checkbox1&#8243;).click(function() {<br />
		// If checked<br />
		if ($(&#8220;#checkbox1&#8243;).is(&#8220;:checked&#8221;))	{<br />
			$(&#8216;#input1&#8242;).removeAttr(&#8220;disabled&#8221;);<br />
		} else {<br />
			$(&#8216;#input1&#8242;).attr(&#8220;disabled&#8221;, true);<br />
		}<br />
	});<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2519</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 28 May 2009 16:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2519</guid>
		<description>Nevermind, IE 8 doesn&#039;t give visual cues to a disabled field.</description>
		<content:encoded><![CDATA[<p>Nevermind, IE 8 doesn&#8217;t give visual cues to a disabled field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2518</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 28 May 2009 16:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2518</guid>
		<description>This doesn&#039;t seem to work in IE 8.  Thoughts?  I&#039;m new to JS/jQuery</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t seem to work in IE 8.  Thoughts?  I&#8217;m new to JS/jQuery</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandre Broggio</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2480</link>
		<dc:creator>Alexandre Broggio</dc:creator>
		<pubDate>Wed, 22 Apr 2009 13:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2480</guid>
		<description>Help much worth the post</description>
		<content:encoded><![CDATA[<p>Help much worth the post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Rundle</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2369</link>
		<dc:creator>Mike Rundle</dc:creator>
		<pubDate>Thu, 13 Nov 2008 16:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2369</guid>
		<description>Thanks for posting this! I was trying to flip the disabled attribute to &quot;false&quot; but that wasn&#039;t doing anything (like I suspected it wouldn&#039;t!) What a great and simple solution to just remove it. Duh! Thanks so much!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this! I was trying to flip the disabled attribute to &#8220;false&#8221; but that wasn&#8217;t doing anything (like I suspected it wouldn&#8217;t!) What a great and simple solution to just remove it. Duh! Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yAnTar</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2322</link>
		<dc:creator>yAnTar</dc:creator>
		<pubDate>Mon, 08 Sep 2008 09:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2322</guid>
		<description>Sorry, and this function

$.fn.disable = function() {
return this.each(function() {
if(typeof this.disabled != “undefined”) this.disabled = true;
});
}</description>
		<content:encoded><![CDATA[<p>Sorry, and this function</p>
<p>$.fn.disable = function() {<br />
return this.each(function() {<br />
if(typeof this.disabled != “undefined”) this.disabled = true;<br />
});<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yAnTar</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2321</link>
		<dc:creator>yAnTar</dc:creator>
		<pubDate>Mon, 08 Sep 2008 09:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2321</guid>
		<description>$(&#039;#target&#039;).attr(&quot;disabled&quot;, true);  = $(&#039;#target&#039;).disable();
$(&#039;#target&#039;).removeAttr(&quot;disabled&quot;);  = $(&#039;#target&#039;).disable(false);</description>
		<content:encoded><![CDATA[<p>$(&#8216;#target&#8217;).attr(&#8220;disabled&#8221;, true);  = $(&#8216;#target&#8217;).disable();<br />
$(&#8216;#target&#8217;).removeAttr(&#8220;disabled&#8221;);  = $(&#8216;#target&#8217;).disable(false);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prasasti</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-2166</link>
		<dc:creator>prasasti</dc:creator>
		<pubDate>Thu, 05 Jun 2008 03:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-2166</guid>
		<description>jetlogs. Tanks.4 u help.</description>
		<content:encoded><![CDATA[<p>jetlogs. Tanks.4 u help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jetlogs</title>
		<link>http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/comment-page-1/#comment-1961</link>
		<dc:creator>Jetlogs</dc:creator>
		<pubDate>Sat, 01 Mar 2008 16:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://jetlogs.org/2007/12/16/jquery-disabled-and-readonly-inputs/#comment-1961</guid>
		<description>@Mike: Yes, disabled fields don&#039;t get sent to the back-end while readonly fields do. So it is very important to know which you would use depending on the situation.</description>
		<content:encoded><![CDATA[<p>@Mike: Yes, disabled fields don&#8217;t get sent to the back-end while readonly fields do. So it is very important to know which you would use depending on the situation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
