title: To fetch dialog property value selected by an author [AEM] in Javascript
body: <p>I would like to know how to fetch selected value from a given dropdown by an author in <strong>Touch UI dialog</strong> using javascript for further manipulation.</p>
  
  <p>Below is my dialog Structure </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
      jcr:primaryType="nt:unstructured"
      sling:resourceType="cq/gui/components/authoring/dialog"&gt;
      &lt;content
          jcr:primaryType="nt:unstructured"
          sling:resourceType="granite/ui/components/foundation/container"&gt;
          &lt;layout
              jcr:primaryType="nt:unstructured"
              sling:resourceType="granite/ui/components/foundation/layouts/tabs"
              type="nav"/&gt;
          &lt;items jcr:primaryType="nt:unstructured"&gt;
              &lt;General
                  jcr:primaryType="nt:unstructured"
                  jcr:title="General Questions"
                  sling:resourceType="granite/ui/components/foundation/container"&gt;
                  &lt;layout
                      jcr:primaryType="nt:unstructured"
                      sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/&gt;
                  &lt;items jcr:primaryType="nt:unstructured"&gt;
                      &lt;columns
                          jcr:primaryType="nt:unstructured"
                          sling:resourceType="granite/ui/components/foundation/container"&gt;
                          &lt;items jcr:primaryType="nt:unstructured"&gt;
                              &lt;allowed-selections
                                  jcr:primaryType="nt:unstructured"
                                  sling:resourceType="granite/ui/components/foundation/form/select"
                                  fieldLabel="Allowed Selections"
                                  name="./allowed"&gt;
                                  &lt;items jcr:primaryType="nt:unstructured"&gt;
                                      &lt;one
                                          jcr:primaryType="nt:unstructured"
                                          text="One"
                                          value="one"/&gt;
                                      &lt;two
                                          jcr:primaryType="nt:unstructured"
                                          text="Two"
                                          value="two"/&gt;
                                      &lt;three
                                          jcr:primaryType="nt:unstructured"
                                          text="Three"
                                          value="three"/&gt;
                                      &lt;four
                                          jcr:primaryType="nt:unstructured"
                                          text="Four"
                                          value="four"/&gt;
                                  &lt;/items&gt;
                              &lt;/allowed-selections&gt;
                              &lt;description/&gt;
                              &lt;selection-text
                                  jcr:primaryType="nt:unstructured"
                                  sling:resourceType="granite/ui/components/foundation/form/textfield"                               
                                  fieldLabel="Selection Text"
                                  name="./selectiontext"/&gt;
                          &lt;/items&gt;
                      &lt;/columns&gt;
                  &lt;/items&gt;
              &lt;/General&gt;
          &lt;/items&gt;
      &lt;/content&gt;
  &lt;/jcr:root&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here I would like to fetch dialog property value of ./allowed (dropdown) in my Javascript.</p>
  
  <p>Thank you in advance.</p>