title: jquery function call on page both onload and onclick?
body: <p>i am working on jquery calender but i need to call a function both on page load and then on click. when the page load for the first time it should automatically call and execute the function and for 2nd time and onward it should be call through click. is it possible?? if yes please help me.</p>
  
  <pre><code>   &lt;script type="text/javascript"&gt;
  
     $(document).ready(function(){
        $("#fullDate").datepicker({
  
          showOn: "button",
          buttonImage: "images/calender.jpg",
          buttonImageOnly: true,
  
          onClose: function(dateText, inst) {
          $('#year').val(dateText.split('/')[2]);
          $('#month').val(dateText.split('/')[0]);
          $('#day').val(dateText.split('/')[1]);
      }
  
  
      });
  
  
  });
  &lt;/script&gt;
  </code></pre>