title: Jquery Slider, Default Value on Load
body: <p>I have one Jquery slider with 4 step and its value is 0, 1, 3 and 3.
  Alert code working fine when I slide. but my issue is I want to alert default slider value "0" when page load.</p>
  
  <p>So in below example, when page load. page should alert "0". which is default value of slider and place in else.</p>
  
  <p><strong>Here is my JQ Code and <a href="http://jsfiddle.net/2mpFw/" rel="nofollow">Fiddle is Here</a></strong></p>
  
  <pre><code>$(function () {
      $("#slider").slider({
          value: 0,
          min: 0,
          max: 3,
          step: 1,
          orientation: "horizontal",
          range: "min",
          animate: true,
          slide: function (event, ui) {
              console.log(ui.value);
              if (ui.value == 0) {
                  alert(ui.value);
              } else if (ui.value == 1) {
                  alert(ui.value);
              } else if (ui.value == 2) {
                  alert(ui.value);
              } else {
                  alert(ui.value);
              }
          }
      });
  });
  </code></pre>