title: Default text in dropdownlist jquery
body: <p>I have written a jQuery to generate a dynamic drop-down list. How can I set the default text in it(Ex: Select a city)? Thanks!</p>
  
  <p>Here is the script:</p>
  
  <pre><code>var ss = $('#ss');
  var select = $('&lt;select&gt;&lt;/select&gt;').attr({ id: name, name: name });
  
  $.each(u.Options, function (i, option) {
     select.append($('&lt;option&lt;/option&gt;').val(option.Value).text(option.Text));
  })
  ss.append(select);
  </code></pre>