I looked into google and found an approach of what I trying to do here here but now I'm stuck. I'm using jQuery to get the value of the onclick function, but I need some inner code out of the Info function.
Here is what I get from $('a.turqheadlabel'):
[<a href="#" onclick="Info('another-ending')" class="TurqHeadLabel">ANOTHER ENDING </a>,
<a href="#" onclick="Info('good-ending')" class="TurqHeadLabel">GOOD ENDING </a> ]
I used $('a.turqheadlabel').attr('onclick') and I get this:
function onclick(event) {
Info('another-ending')
}
What I look is get the another-ending and good-ending so I can put them in an array that I need to call.
PS. If there is a way to avoid using eval is preferable since chrome will block it next year.