Call function from hyperlink defined in qTip content
Posted
by user327066
on Stack Overflow
See other posts from Stack Overflow
or by user327066
Published on 2010-05-26T17:59:28Z
Indexed on
2010/05/26
18:01 UTC
Read the original article
Hit count: 234
Hi, I am trying to call a javascript function from a hyperlink that is part of the content in a qTip. I keep getting the error my function is not defined but it is defined within the page and can be called outside of qTip. Below is what I have so far:
function addTooltip() { $("#mycontent").qtip({ content: 'mylink' }); }
function tester() { alert("hello world"); }
If I put the alert within the onClick attribute, I at least get the alert to work. Is there some special way of calling a function from within qTip? Any help is appreciated. Thanks.
© Stack Overflow or respective owner