Call click event on Load
Call click event on Load
Hi,
This is first shot at jQuery and I need some help to achieve what I intend to do.
I have a click event associated with a div
-
$("#d1 .c").click(function(){
This is my current div structure
<div id="d1">
<div class="c">
<ul id="u1">
</ul>
</div>
</div>
Currently the function is called on click. I would like to call that function for the ul on load. How do I do this?
Thanks