title: Dynamic appending of values in select dropdown appends empty field in dropdown when the option contains spaces
body: <p>I have a simple dropdown select which value is appended by input from a text box.</p>
  
  <p>The appending process is fine when the text in input is a single word without spaces, but appends an empty field when the text contains space. </p>
  
  <blockquote>
    <p>example:  "New York" will be appended empty.</p>
  </blockquote>
  
  <pre><code>// City is a text box from which new city name is to be taken 
  var newCity = $('#City').val();
  
  //selectCity is a dropdown of the list of city
  $('.selectCity').append('&lt;option value='+newCity+'&gt;'+newCity+'&lt;/option&gt;');
  </code></pre>
  
  <p>Thank you before hands</p>