How to run java script on page load
<pre><code>  &lt;script type="text/javascript"&gt;
        $(function () {
            $("#slider-range").slider({
                range: true,
                min: 0,
                max: 100,
                values: [25, 75],
                slide: function (event, ui) {
                    $("#minval").val("" + ui.values[0] + " - " + ui.values[1]);
                }
            });
            $("#minval").val("" + $("#slider-range").slider("values", 0) +
            " - " + $("#slider-range").slider("values", 1));
        });
    &lt;/script&gt;
    &lt;script type="text/javascript"&gt;

        $(function () {


            $('.datePicker').datetimepicker({ dateFormat: 'dd/mm/yy' });

        });
    &lt;/script&gt;
</code></pre>

<p>I managed to do one script on page load with this code</p>

<pre><code>function pageLoad(sender, args) {         $('.datePicker').datetimepicker({ dateFormat: 'dd/mm/yy' });     } 
</code></pre>

<p>how can I run both the java script on page load, I am using this in asp.net website</p>
