Hello I have a quick question.

I can launch javascript code like this through arrays:


** but how do I launch jQuery code through an array?**

My jquery code is

$(function() {
var ele = $('#div1');
var speed = 25, scroll = 5, scrolling;

$('#scroll-down').mousedown(function() {

Any advise would be great.

Thank you.

Just give your function a name and call it like you normally would.

So call it

$(function my() {

and then call it as javascript?


I have tried this with no luck.
I have also tried calling it from
> $('#scroll-down')
with no success.
I am new to jQuery thanks for your help.


Need to know the bigger picture. What are you trying to achieve?