on ready jQuery function with javascript function for onclick
I am trying to run the jQuery function with a button call but non of the options seem to be working so I resorted to using javascript function in the end so I can use onclientclick to call it. The problem is.
$(document).ready(function () {
my_fun();
my_fun1();
});
This works, but
$(document).ready(function () {
function script2() {
my_fun();
my_fun1();
}
});
The second one doesn't work. I would like to be able to run both my_fun() and my_fun1() for slideshows inside the jQuery function.