<?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 Re: JQuery add 2  checkbox one label in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589554#M55084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, here a idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input&amp;nbsp; id='Ckh_0' name="Ckh_0" type='checkbox'&amp;nbsp; checked=SetLayerDefaultVisible(0)&amp;nbsp; data-iconpos=right/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input&amp;nbsp; id='Ckh_1' name="Ckh_0" type='checkbox'&amp;nbsp; checked=SetLayerDefaultVisible(0)&amp;nbsp; data-iconpos=right /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;label&amp;nbsp; for='Ckh_0'&amp;gt;port&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td colspan='1' &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;$(document).ready(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_0').change(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var estado = $('#Ckh_0').prop('checked');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_1').prop('checked', estado);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_1').change(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var estado = $('#Ckh_1').prop('checked');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_0').prop('checked', estado);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsfiddle.net/1h2egw6L/" title="https://jsfiddle.net/1h2egw6L/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry by the code in the editor, example complete is in fiddle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 19:13:55 GMT</pubDate>
    <dc:creator>AlexanderMena</dc:creator>
    <dc:date>2015-11-18T19:13:55Z</dc:date>
    <item>
      <title>JQuery add 2  checkbox one label</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589553#M55083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;form&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;input&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;id=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;'Ckh_0' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;name=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"Ckh_0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;type=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;'checkbox'&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;checked=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;SetLayerDefaultVisible(0)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;data-iconpos=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;right &lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;label&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;for=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;'Ckh_0'&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;port&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;td&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;td &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;colspan=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;'1' &lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;form&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589553#M55083</guid>
      <dc:creator>FaisalBukhari</dc:creator>
      <dc:date>2015-11-18T18:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: JQuery add 2  checkbox one label</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589554#M55084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, here a idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input&amp;nbsp; id='Ckh_0' name="Ckh_0" type='checkbox'&amp;nbsp; checked=SetLayerDefaultVisible(0)&amp;nbsp; data-iconpos=right/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input&amp;nbsp; id='Ckh_1' name="Ckh_0" type='checkbox'&amp;nbsp; checked=SetLayerDefaultVisible(0)&amp;nbsp; data-iconpos=right /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;label&amp;nbsp; for='Ckh_0'&amp;gt;port&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td colspan='1' &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;$(document).ready(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_0').change(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var estado = $('#Ckh_0').prop('checked');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_1').prop('checked', estado);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_1').change(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var estado = $('#Ckh_1').prop('checked');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#Ckh_0').prop('checked', estado);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsfiddle.net/1h2egw6L/" title="https://jsfiddle.net/1h2egw6L/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry by the code in the editor, example complete is in fiddle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 19:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589554#M55084</guid>
      <dc:creator>AlexanderMena</dc:creator>
      <dc:date>2015-11-18T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: JQuery add 2  checkbox one label</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589555#M55085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My above&amp;nbsp; code generate two Checkboxes and one label ,&amp;nbsp; but i need one Checkbox with Label ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 22:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jquery-add-2-checkbox-one-label/m-p/589555#M55085</guid>
      <dc:creator>FaisalBukhari</dc:creator>
      <dc:date>2015-11-18T22:41:37Z</dc:date>
    </item>
  </channel>
</rss>

