Write on html on load
<p>I have created a function who tracks on which slide I am currently on and display the result
e.g. If I am on slide 2 of 3 it will display 2/3</p>

<p>my problem is that right now it is set to do that every time I click the forward arrow but it displays nothing on page load.</p>

<pre><code>$('.forward').click(function() {
var current = $('#slider').data('AnythingSlider').currentPage; // returns page #
var count = $("#slider").children().length - 2;
$("#bottom-image").html(current + "/" + count) ;
});
</code></pre>

<p>I am trying to find out how to execute this function on page load and where to put it in my code. I am currently learning Javascript through Codecadamedy so I have a basic knowledge of Javascript but I am not enough fluent right now to figure this one out.</p>

<p>Here is a link to the current non working code : <a href="http://www.soleilcom.com/metacor_dev/our-plants.php" rel="nofollow">http://www.soleilcom.com/metacor_dev/our-plants.php</a></p>
