take the "javascript:" protocol thingy out, that's for if you put it
in the href isn't it?

On Sep 23, 11:21 am, Servous <serv...@gmail.com> wrote:
> Hi!
>
> I wonder if it's possible to execute jQuery events directly from a
> link, just like common javascript.
>
> Something like this:
>
> <a href="#" onclick="javascript:$("test").toggle();">test</a>
>
> I'm aware that this doesn't work, but is there any way to execute it
> like this instead of inserting a whole <script></script> block?
>
> Thanks!

Reply via email to