<?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 For checkboxes you use .prop( in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/jQuery-Mobile-Radiobox-Change-Doesn-t-work/m-p/1093135#M65993</link>
    <description>&lt;P&gt;For checkboxes you use .prop("checked", true), not &amp;nbsp;.attr()&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;A href="http://stackoverflow.com/questions/15044340/jquery-set-checkbox-checked" target="_blank"&gt;http://stackoverflow.com/questions/15044340/jquery-set-checkbox-checked&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;And to change a value and have an event fired, you use $(domNode).val() &amp;nbsp; and for knowing when that has changed $(domNode).change()&lt;/P&gt;

&lt;P&gt;&lt;A href="https://api.jquery.com/change/" target="_blank"&gt;https://api.jquery.com/change/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://api.jquery.com/val/" target="_blank"&gt;http://api.jquery.com/val/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope these help,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 22:07:48 GMT</pubDate>
    <dc:creator>Chris_P_Intel</dc:creator>
    <dc:date>2016-01-19T22:07:48Z</dc:date>
    <item>
      <title>jQuery Mobile - Radiobox Change Doesn't work</title>
      <link>https://community.intel.com/t5/Software-Archive/jQuery-Mobile-Radiobox-Change-Doesn-t-work/m-p/1093134#M65992</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I am still learning and working on Intel XDK platform.&lt;/P&gt;

&lt;P&gt;I was switch multipage applications trials.&lt;/P&gt;

&lt;P&gt;My project in has two pages, These are&amp;nbsp; &lt;STRONG&gt;#mainpage &lt;/STRONG&gt;and &lt;STRONG&gt;#settings&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Main page in click settings button go to the #settings page. This page has radiobox language switch button.&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;&amp;lt;fieldset data-role="controlgroup" data-type="horizontal"&amp;gt;
    &amp;lt;legend&amp;gt;Select Your Language:&amp;lt;/legend&amp;gt;
    &amp;lt;input name="selectLang" id="radio-choice-h-2a" value="en" checked="checked" type="radio"&amp;gt;
    &amp;lt;label for="radio-choice-h-2a"&amp;gt;English&amp;lt;/label&amp;gt;
    &amp;lt;input name="selectLang" id="radio-choice-h-2b" value="ru" type="radio"&amp;gt;
    &amp;lt;label for="radio-choice-h-2b"&amp;gt;Russian&amp;lt;/label&amp;gt;
&amp;lt;/fieldset&amp;gt;&lt;/PRE&gt;

&lt;P&gt;And I am controlling in &lt;STRONG&gt;app.js&lt;/STRONG&gt; follow here;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;window.currentLanguage = "en";

$(document).ready(function(){
    
    //Language Init
    if(window.currentLanguage == "en"){
        $('input[name=selectLang][value=en]').attr("checked",true);
        $('input[name=selectLang][value=ru]').attr("checked",false);
    }else{
        $('input[name=selectLang][value=en]').attr("checked",false);
        $('input[name=selectLang][value=ru]').attr("checked",true);
    }

    //It is working
    alert($('[name="selectLang"]').val());

    //It is not working
    $('[name="selectLang"]').click(function(){
        alert($(this).val());
    });
    
});&lt;/PRE&gt;

&lt;P&gt;I don't understand. Where is the problem? I had try .on and .delegate method but this situation is same.&lt;/P&gt;

&lt;P&gt;Thank you for interest.&lt;/P&gt;

&lt;P&gt;Good works.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 22:01:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/jQuery-Mobile-Radiobox-Change-Doesn-t-work/m-p/1093134#M65992</guid>
      <dc:creator>Fatih_Mert_D_</dc:creator>
      <dc:date>2016-01-18T22:01:54Z</dc:date>
    </item>
    <item>
      <title>For checkboxes you use .prop(</title>
      <link>https://community.intel.com/t5/Software-Archive/jQuery-Mobile-Radiobox-Change-Doesn-t-work/m-p/1093135#M65993</link>
      <description>&lt;P&gt;For checkboxes you use .prop("checked", true), not &amp;nbsp;.attr()&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;A href="http://stackoverflow.com/questions/15044340/jquery-set-checkbox-checked" target="_blank"&gt;http://stackoverflow.com/questions/15044340/jquery-set-checkbox-checked&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;And to change a value and have an event fired, you use $(domNode).val() &amp;nbsp; and for knowing when that has changed $(domNode).change()&lt;/P&gt;

&lt;P&gt;&lt;A href="https://api.jquery.com/change/" target="_blank"&gt;https://api.jquery.com/change/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://api.jquery.com/val/" target="_blank"&gt;http://api.jquery.com/val/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope these help,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 22:07:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/jQuery-Mobile-Radiobox-Change-Doesn-t-work/m-p/1093135#M65993</guid>
      <dc:creator>Chris_P_Intel</dc:creator>
      <dc:date>2016-01-19T22:07:48Z</dc:date>
    </item>
  </channel>
</rss>

