i add this script to my page it is a poll contain a button i want when user click on button it run a function
JavaScript embed code:
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/6061322.js"></script>
<noscript><a href="http://polldaddy.com/poll/6061322/">أختار مرشحك للرئاسة</a></noscript>
Use jquery like this:
$('.pds-vote-button').bind('click', function() {
//call your function
});
you may want to unbind what is already happening....
Just substitute your function name
<a href="http://polldaddy.com/poll/6061322/" onclick="functioneName()">