title: JqueryMobile 1.4.0 pass parameter to popup
body: <p>I'm pretty new to jQuery Mobile and PHP and I'm having an issue where I have a PHP while loop </p>
  
  <pre><code>    while ( $row = sasql_fetch_array ( $idresult ) ) {
      echo "
          &lt;li&gt;
              &lt;a href='#' data-rel='popup' data-position-to='window' data-transition='pop'&gt;
                  &lt;div class='ui-grid-a'&gt;
                      &lt;div class='ui-block-a'&gt;
                          &lt;div class='ui-bar ui-bar-a titleRow' style='height:15px'&gt;Identification Type&lt;/div&gt;
                          &lt;div id='idType' class='ui-bar ui-bar-a 'style='height:15px; background-color:transparent; border: none; color: black; font-weight: normal;' &gt;" . $row ['description'] . "&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class='ui-block-b'&gt;
                          &lt;div class='ui-bar ui-bar-a titleRow' style='height:15px'&gt;Details&lt;/div&gt;
                          &lt;div id='idNo' class='ui-bar ui-bar-a ' style='height:15px; background-color:transparent; border: none; color: black; font-weight: normal;'&gt;" . $row ['number'] . "&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/a&gt;
              &lt;a href='#editCustId' data-rel='popup' data-position-to='window' data-transition='pop'&gt;Edit&lt;/a&gt;
          &lt;/li&gt;
          ";
  } // end while
  echo "&lt;/ul&gt;";
  } // end if
  </code></pre>
  
  <p>When the use clicks on the edit button I need to pass the ID of that particular row. I'm not sure where I should put this in but it could be something like this...? Will this work when there is no form?</p>
  
  <pre><code>&lt;input type="hidden" name="the_id" value='&lt;?php " . $row ['theid'] . " ?&gt;' /&gt;
  </code></pre>
  
  <p>However I can't figure out how to do this. I have tried opening the dialog as a new page ie.</p>
  
  <pre><code>&lt;a href='./editCustId.php?id=" . $row['theid'] . "' data-rel='popup' data-position-to='window' data-transition='pop' class='ui-btn ui-btn-inline ui-icon-edit ui-btn-icon-notext'&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>When edit is clicked this popup will open</p>
  
  <pre><code>    &lt;div data-role='popup' id='editCustId' data-theme='a' data-overlay-theme='a' data-dismissible='false' style='min-width: 300px;'&gt;
                  &lt;div data-role='header' data-theme='a'&gt;
                      &lt;h1&gt;Add ID&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;div data-role='main' class='ui-content'&gt;
                      &lt;form id='editId' onsubmit="return false;"&gt;
  
                          &lt;input type="hidden" name="cust_id" value='&lt;?php echo $custid; ?&gt;' /&gt; 
                          &lt;input type="hidden" name="sess_id" value='&lt;?php echo $sid; ?&gt;' /&gt;
  
  
  
                          &lt;!-- &lt;input type="hidden" name="submitted" value="true" /&gt; --&gt;
  
                          &lt;div class="ui-field-contain"&gt;
                              &lt;label for="phoneType"&gt;Type&lt;/label&gt; 
                                  &lt;select name="idType" id="idType"&gt;
                                      &lt;?php echo $idInnerOptions; ?&gt;
                                  &lt;/select&gt;
                          &lt;/div&gt;
                          &lt;div class="ui-field-contain"&gt;
                              &lt;label for="idDesc"&gt;Description&lt;/label&gt; &lt;input type="text" name="idDesc" id="idDesc" value=""&gt;
                          &lt;/div&gt;
  
                          &lt;div class='ui-grid-a'&gt;
                              &lt;div class='ui-block-a'&gt;
                                  &lt;input type='submit' id="submit" value='Update' class='ui-btn ui-btn-inline' data-transition='pop' /&gt;       
                              &lt;/div&gt;
                              &lt;div class='ui-block-b'&gt;
                                  &lt;a href='#' class='ui-btn' data-rel='back' data-transition='pop' id="addIdReset"&gt;Cancel&lt;/a&gt;
                              &lt;/div&gt;
                              &lt;div id="success" style="color: black;"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  
                  &lt;/div&gt;
          &lt;/div&gt;  
  </code></pre>
  
  <p>The description and number will contain the relevant info based on which link was clicked.</p>
  
  <p>I've been looking into passing the data through ajax but I'm not really getting what I should be doing? </p>