title: data received through JQuery, php, mysql is not working
body: <p><img src="https://i.stack.imgur.com/tPDxG.png" alt="enter image description here"></p>
  
  <p>On entering the customer name in textbox it searches for customer info. I have generated successfully using JQuery by passing the entire table through Json variable, as I dont want any page refresh. Now I want to select the customer id generated from mysql db (php) through radio button, but the radio button event is not working. For testing purpose I have put a static table having the same radio button properties in that particular div(place for dynamic record generation using JQuery) and working fine. Hence I found that the data received through JQuery got some problem. Hope I am clear. Please find a way. Thanks in advance.</p>
  
  <p><em>below is the code</em></p>
  
  <p><strong>abc.php</strong></p>
  
  <pre><code>&lt;input type="text" placeholder="full name" id="fullName" name="fullName" class="txt" style="width: 250px" /&gt;&amp;ensp;
  &lt;input type="button" id="btSelect" value="Select" class="button-crystal" /&gt;
  &lt;div id="disp"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>script.js</strong></p>
  
  <pre><code>$('#btSelect').click(function () {
          var form_data = {
              genCustDetails: $('#fullName').val(),
              is_ajax: 1
          };
  
          $.ajax({
              type: "POST",
              url: "xyz.php",
              data: form_data,
              dataType: "json",
              success: function (response)
              {
                  $('#disp').html(response);
              }
          });
          return false;        
      });
  </code></pre>
  
  <p><strong>xyz.php</strong></p>
  
  <pre><code>if (isset($_POST['genCustDetails'])) {
      $out="";
      $result = mysql_query("select * from dbcustdetails where name like '$_POST[genCustDetails]%'");
      while ($row = mysql_fetch_assoc($result)) {
          $out.='
          &lt;table style="background-color:#eee; margin-bottom:5px;"&gt;
              &lt;tr&gt;
                  &lt;th class="td3"&gt;Customer ID&lt;/th&gt;
                  &lt;td class="td4"&gt;
                      '.$row["custID"].'&amp;ensp;&lt;input type="radio" id="cust_ID" name="cust_ID" value="'.$row["custID"].'" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;th class="td3"&gt;Name&lt;/th&gt;
                  &lt;td class="td4"&gt;'.$row["name"].'&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;th class="td3"&gt;Phone No.&lt;/th&gt;
                  &lt;td class="td4"&gt;'.$row["phno"].'&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;th class="td3"&gt;Email&lt;/th&gt;
                  &lt;td class="td4"&gt;'.$row["email"].'&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="2" style="padding:0;"&gt;
                      &lt;b&gt;Address&lt;/b&gt;&lt;br/&gt;'.$row["addr"].'
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;';       
      }
      echo json_encode($out);
  }
  </code></pre>