I playing around with a function that I want to bind to all the links. At the present the function fires when the page loads, instead of when I click on the link.
H
Use the below line. showDiv() will call the function rigth away when that line is executed.
showDiv()
$('a.test').bind("click", showDiv);