title: how to select the default value of selectpicker using document ready?
body: <p>I know it can be than by like this </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;option value="3" selected&gt;3 minutes&lt;/option&gt;
  </code></pre>
  
  
  
  <p>but the I need it on Jquery because the value will come from ajax database. </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="col-lg-6"&gt;
              Log out after  
              &lt;select class="selectpicker" id="session_pick" name="session_pick" value="30"&gt;
                &lt;option value="3"&gt;3 minutes&lt;/option&gt;
                &lt;option value="15"&gt;15 minutes&lt;/option&gt;
                &lt;option value="30"&gt;30 minutes&lt;/option&gt;
              &lt;/select&gt;
           &lt;/div&gt;
  </code></pre>