title: php:how to make a append and append for the given id is not working?
body: <p>in my code i using the append function to get values by ajax call:</p>
  
  <pre><code>type: 'POST',
          url: 'include/LocationService.php?run=getDistrictBoundries',
          data: {
              level : $('#level').val(),
              state : $('#stateId').val()
          },
          dataType: "json",
          success: function (response) {
              $('#distvalue').html('');
              var districts = response.d;
              $.each(districts, function (index, district) {
                  $('#distvalue').append('&lt;option value="'+ district.geo_id+'"&gt;'+district.dist_name+'&lt;/option&gt;');
                  console.log("districtname"+districts);
              });
          },
          error: function (XMLHttpRequest, textStatus, errorThrown) {
              $("#error_msg").val(textStatus);
          }
  </code></pre>
  
  <p>but in the above code:</p>
  
  <pre><code>$('#distvalue').append('&lt;option value="'+ district.geo_id+'"&gt;'+district.dist_name+'&lt;/option&gt;');
  </code></pre>
  
  <p>is not working.</p>
  
  <p>so i need to get this ajax call values.how it possible?</p>