-4

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>

2 Answers2

0

Just substitute your function name

<a href="http://polldaddy.com/poll/6061322/" onclick="functioneName()">
RyanS
  • 3,964
  • 3
  • 23
  • 37
0

Use jquery like this:

$('.pds-vote-button').bind('click', function() {
  //call your function
});

you may want to unbind what is already happening....

Steen
  • 2,749
  • 2
  • 20
  • 36