Displaying 1 result from an estimated 1 matches for "jqjslink".
2006 Jun 28
2
Event.observe for href
Hello everyone,
I''d like to have an onclick triggered by a href, but since href''s
don''t have id''s, how do I use the Event.observe syntax with an href?
<a href="#" class="jQJSLink" />Click me!</a>
<script type="text/javascript" charset="utf-8">
Event.observe(''NOT-SURE-WHAT-TO-PUT-HERE'', ''click'', function () {
Element.toggle($(''othercontent'')); }, false );
</script>
Th...