<?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 How to dynamically change dojo element values?  in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833052#M5432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the items in the Search.html, e.g. the 2 listed below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label data-dojo-attach-point="labelSearchTerm0"&amp;gt;&amp;nbsp;&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;input type="text" style="width:100%;" data-dojo-type="dijit/form/TextBox" data-dojo-attach-point="inputSearchTerm0" data-dojo-props="trim:true,disabled:true" /&amp;gt;&lt;/P&gt;&lt;P&gt;I want to dynamically re-set their values in JavaScript.&amp;nbsp; How to do it?&amp;nbsp; Appreciate if you can help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2016 14:24:59 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2016-11-04T14:24:59Z</dc:date>
    <item>
      <title>How to dynamically change dojo element values?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833052#M5432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the items in the Search.html, e.g. the 2 listed below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label data-dojo-attach-point="labelSearchTerm0"&amp;gt;&amp;nbsp;&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;input type="text" style="width:100%;" data-dojo-type="dijit/form/TextBox" data-dojo-attach-point="inputSearchTerm0" data-dojo-props="trim:true,disabled:true" /&amp;gt;&lt;/P&gt;&lt;P&gt;I want to dynamically re-set their values in JavaScript.&amp;nbsp; How to do it?&amp;nbsp; Appreciate if you can help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 14:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833052#M5432</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2016-11-04T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change dojo element values?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833053#M5433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming your JavaScript code is in Search.js and you want to set the value in dijit you referenced with the attach point '&lt;SPAN style="background-color: #ffffff;"&gt;data-dojo-attach-point="inputSearchTerm0"`&lt;/SPAN&gt;, you would use:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;inputSearchTerm0&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'value'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'My Value'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are numerous additional examples of this method in Search.js. Here's one:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/tmcgee/cmv-widgets/blob/master/widgets/Search.js#L582" title="https://github.com/tmcgee/cmv-widgets/blob/master/widgets/Search.js#L582"&gt;cmv-widgets/Search.js at master · tmcgee/cmv-widgets · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 17:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833053#M5433</guid>
      <dc:creator>TimMcGee1</dc:creator>
      <dc:date>2016-11-04T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change dojo element values?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833054#M5434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I got the same answer as you provided as I reviewed the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 17:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-dynamically-change-dojo-element-values/m-p/833054#M5434</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2016-11-04T17:40:24Z</dc:date>
    </item>
  </channel>
</rss>

