How to create html page in the ajax response in jQuery
<p>We are using jQuery ajax in our application.</p>

<p>For example to get the states in a country ,after getting the result from server 
 then we are doing the following thing.</p>

<pre><code>$.each(results , function(index,value){

  $('#id').append('&lt;option value="'+index+'"&gt;'+value+'&lt;/option&gt;');

});//Here `id` the select box id
</code></pre>

<p>It is working perfectly. But I need a better readable solution. Is there any other way to do this?</p>
