title: How to select default value in drop down list using JQuery
body: <p>I want to select "Algeria" as default selected value in drop down list.I am fetching countrylist from database using handler ( LoadCountryList.ashx ) in JSON data format and binding it to dropdownlist on aspx page using Jquery's $.getJSON precedure given below</p>
  
  <pre><code>function AddOptions(objSelect)
  {
      var URL ="~/LoadCountryList.ashx";
      $.getJSON(URL,function(countries){
          $.each(countries,function(){
              var vCountry = this['Country'];
              $(objSelect).append($("&lt;option&gt;&lt;/option&gt;").val(this['ID']).html(vCountry));
          });
      });
  }
  </code></pre>
  
  <p>and finally i tried to set its default value "Algeria".</p>
  
  <pre><code>$(objSelect).find("option[text='Algeria']").attr("selected","selected"); 
  OR
  $(objSelect).find("option[value='3']").attr("selected","selected");
  </code></pre>
  
  <p>but its not worked.Does anyone suggest me how to do it.</p>
  
  <p><img src="https://i.stack.imgur.com/MXkwj.png" alt="enter image description here"></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Also i want to show waiting message like Loading... until it get complete country list from database.</p>