If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

adding click function to custom object

I'm trying to add a click function to my object. The way i have it now in bold is how I saw someone else use it, it doesn't work. I tried using jquery's bind('click') and this.div.onclick but it runs the function right away upon instantiation.

Thanks that works, is there a tutorial or an article that explains what you can do with the jQuery() tag because half my code is regular javascript half jquery and I'm clueless if it should all be one or the other.