<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Strange, I just tried it in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086994#M63780</link>
    <description>&lt;P&gt;Strange, I just tried it again. The button remains unchanged, but not respond to clicks. If I change with the same method to disabled = false, it is working again.&lt;/P&gt;

&lt;P&gt;Are you using App Framework 3 or other?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2016 11:53:30 GMT</pubDate>
    <dc:creator>Diego_Calp</dc:creator>
    <dc:date>2016-04-15T11:53:30Z</dc:date>
    <item>
      <title>Cannot Disable/Enable a button</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086988#M63774</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have this Javascript:&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em;"&gt;function salesType(){&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;    var saleschecked = $('#salesType').prop("checked");
    localStorage.setItem("salesType",true);
    if (saleschecked == true) {
   $("#atbutton").removeAttr("disabled");
        $('#sales').prop('readonly', true);
    }
    else
        {
    $("#atbutton").attr("disabled", "disabled");
    $('#sales').prop('readonly', false);
        }
}&lt;/PRE&gt;

&lt;P&gt;and this HTML&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;&amp;lt;div class="ui-checkbox widget uib_w_65 CheckboxMargin CheckboxWidth" data-uib="jquery_mobile/checkbox" data-ver="0"&amp;gt;
                        &amp;lt;label&amp;gt;Input Sales
                            &amp;lt;input type="checkbox" onclick="javascript:salesType()" name="salesType" id="salesType" data-mini="true"&amp;gt;
                        &amp;lt;/label&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="table-thing with-label widget uib_w_66 d-margins UpperWidths LabelText InputText" data-uib="jquery_mobile/input" data-ver="0"&amp;gt;
                        &amp;lt;label class="narrow-control label-inline" for="sales"&amp;gt;Sales&amp;lt;/label&amp;gt;
                        &amp;lt;input class="wide-control" type="number" data-mini="true" value="0" name="sales" id="sales"&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;a class="widget uib_w_67 d-margins" data-uib="jquery_mobile/button" data-ver="0" data-role="button" id="atbutton" name="atbutton" disabled="disabled"&amp;gt;Advanced Data&amp;lt;/a&amp;gt;&lt;/PRE&gt;

&lt;P&gt;On page load the Advanced Data button should be disabled and when I check the checkbox, the Sales input becomes readonly as required, but the Advanced Data button is always enabled, I cannot swap between disabled and enabled on checkbox click.&lt;BR /&gt;
	&lt;BR /&gt;
	Any thoughts please.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:55:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086988#M63774</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2016-04-13T10:55:47Z</dc:date>
    </item>
    <item>
      <title>Try </title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086989#M63775</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$('#&lt;SPAN style="color: rgb(0, 0, 255); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;atbutton&lt;/SPAN&gt;').prop('checked', false);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:16:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086989#M63775</guid>
      <dc:creator>Hamilton_Tenório_da_</dc:creator>
      <dc:date>2016-04-13T11:16:50Z</dc:date>
    </item>
    <item>
      <title>Hi Thanks for your help, but</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086990#M63776</link>
      <description>&lt;P&gt;Hi Thanks for your help, but that doesn't work.&lt;BR /&gt;
	&lt;BR /&gt;
	Also I am trying to disable a button not check/uncheck a checkbox.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:22:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086990#M63776</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2016-04-13T11:22:24Z</dc:date>
    </item>
    <item>
      <title>Bump</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086991#M63777</link>
      <description>&lt;P&gt;Bump&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:05:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086991#M63777</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2016-04-15T11:05:29Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086992#M63778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;With AF3 this work for me:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$("#atbutton").prop("disabled",true);
&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:23:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086992#M63778</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-04-15T11:23:26Z</dc:date>
    </item>
    <item>
      <title>Nope tried that before and</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086993#M63779</link>
      <description>&lt;P&gt;Nope tried that before and tried it again, but the button refuses to change state.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:48:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086993#M63779</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2016-04-15T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Strange, I just tried it</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086994#M63780</link>
      <description>&lt;P&gt;Strange, I just tried it again. The button remains unchanged, but not respond to clicks. If I change with the same method to disabled = false, it is working again.&lt;/P&gt;

&lt;P&gt;Are you using App Framework 3 or other?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:53:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086994#M63780</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-04-15T11:53:30Z</dc:date>
    </item>
    <item>
      <title>I'm using jQuery Mobile. Its</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086995#M63781</link>
      <description>&lt;P&gt;I'm using jQuery Mobile. Its an app I've been working on for a while.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:57:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086995#M63781</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2016-04-15T11:57:27Z</dc:date>
    </item>
    <item>
      <title>OK.</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086996#M63782</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;OK.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;XDK creates JQM buttons as link buttons. They don't have methods as enable disable associated.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://demos.jquerymobile.com/1.2.0/docs/buttons/buttons-methods.html" target="_blank"&gt;http://demos.jquerymobile.com/1.2.0/docs/buttons/buttons-methods.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif;"&gt;Link buttons (&amp;lt;a&amp;gt; element) doesn't have a disabled property. You need to use a workaround like this:&lt;/P&gt;

&lt;P style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif;"&gt;&lt;A href="http://stackoverflow.com/questions/6438659/how-to-disable-a-link-button-in-jquery-mobile" target="_blank"&gt;http://stackoverflow.com/questions/6438659/how-to-disable-a-link-button-in-jquery-mobile&lt;/A&gt;&lt;/P&gt;

&lt;P style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif;"&gt;Regards,&lt;/P&gt;

&lt;P style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif;"&gt;Diego&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 12:14:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086996#M63782</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-04-15T12:14:08Z</dc:date>
    </item>
    <item>
      <title>Thats a very good point, hadn</title>
      <link>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086997#M63783</link>
      <description>&lt;P&gt;Thats a very good point, hadn't considered that.&lt;/P&gt;

&lt;P&gt;I will take a look at the links you have posted. Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 12:19:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Cannot-Disable-Enable-a-button/m-p/1086997#M63783</guid>
      <dc:creator>Nick_F_2</dc:creator>
      <dc:date>2016-04-15T12:19:05Z</dc:date>
    </item>
  </channel>
</rss>

