search for: toggle_1929

Displaying 2 results from an estimated 2 matches for "toggle_1929".

2005 Oct 17
11
a better question
I''m trying to call a click() event on an <a href> that has an Observable registered for it. Something like: <a href="#" id="toggle_1929">show</a> ... Event.observe("toggle_1929", ''click'', function(event){ Element.toggle ("group_1929"); return false; }); ... $("toggle_1929").click(); //this throws "Error: $ ("toggle_1929").click is not a function"...
2005 Oct 18
0
RE: Error: "onclick() is not a function"
...what you need to do (and maybe this is what Jon''s >> getting at) is to invoke the function that''s bound to the >> ''onclick'' property of the element you''re interested in. This >> should do the trick: >> >> $(''toggle_1929'').onclick(); >> >> So you were pretty close :-) >> >> L. >> >> On 17-Oct-05, at 9:16 PM, Whitcraft, Jon wrote: >> >> >> >>> onclick() is what function the browsers call when you click on >>> something. you set it by...