title: how to get the drop down selected value which define in div tag
body: <p>i create a combobox using jquery but i cannot print the dropdown selected data in textbox.</p>
  
  <p>This i my jquery code..</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css"&gt;
  &lt;link rel="stylesheet" href="jqwidgets/styles/jqx.classic.css" type="text/css"&gt;
  &lt;script type="text/javascript" src="jquery-1.11.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jqwidgets/jqxcore.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jqwidgets/jqxbuttons.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jqwidgets/jqxscrollbar.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jqwidgets/jqxdata.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jqwidgets/jqxlistbox.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jqwidgets/jqxcombobox.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Create a div tag for the ComboBox.
  
  &lt;div id="jqxcombobox" &gt;&lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          // prepare the data
          var source =
          {
              datatype: "json",
              datafields: [
                  { name: 'name' }
  
              ],
              url: 'new.php'
          };
          var dataAdapter = new $.jqx.dataAdapter(source);
          $("#jqxcombobox").jqxComboBox(
          {
              source: dataAdapter,
              theme: 'classic',
              width: 200,
              height: 25,
              selectedIndex: 0,
              displayMember: 'name',
              valueMember: 'name'
          });
      });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>in new.php page contain....</p>
  
  <pre><code>&lt;?php
  #Include the connect.php file
  include('connect.php');
  #Connect to the database
  //connection String
  $connect = mysql_connect($hostname, $username, $password)
  or die('Could not connect: ' . mysql_error());
  //select database
  mysql_select_db($database, $connect);
  //Select The database
  $bool = mysql_select_db($database, $connect);
  if ($bool === False){
      print "can't find $database";
  }
  // get data and store in a json array
  $query = "SELECT distinct name FROM customer";
  $from = 0; 
  $to = 30;
  $query .= " LIMIT ".$from.",".$to;
  
  $result = mysql_query($query) or die("SQL Error 1: " . mysql_error());
  while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
      $customers[] = array(
          'name' =&gt; $row['name']
  
        );
  }
  
  echo json_encode($customers);
  ?&gt;
  </code></pre>
  
  <p>how i get the data from combobox and show in textbox..
  Please help</p>