[jQuery] Re: Execute jQuery from links
That should work in theory, but your structure is wrong. If you do something like this: Will this work? you will see that it works when you click it. The javascript: protocol is not necessary, but it won't break anything if you leave it in.
[jQuery] Re: Execute jQuery from links
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 wrote: > Hi! > > I wonder if it's possible to execute jQuery events directly from a > link, just like common javascript. > > Something like this: > > test > > I'm aware that this doesn't work, but is there any way to execute it > like this instead of inserting a whole block? > > Thanks!