ajax - Trigger a jQuery function on click -
It's quite simple, but I'm not very skilled with jQuery, so this is making it difficult to work. ...
I have to show a notification popup (in the form of Facebook) which tells the user that he has earned some points.
I am using WordPress and the code is working fine for popup, which is below.
jQuery.noticeAdd ({lesson: "Congratulations! You've just earned 5 points", cancel: incorrect});
I want to display a popup when a particular button is clicked. The class for the button is comment-answer-link
then I wrote this code
$ ("comment-answer-link") . Click here (function () {jQuery}:
But this code works I did not make any mistake. How can I disclose the information popup only when a particular class button is clicked on.
Please try both of these codes one by one if it will work
the first code
$ (" comment-reply- Link "). Click (function () {$ .no
second code
Code> jQuery (click "comment-answer-link"). (Function () {jQuery.noticeAdd ({text: "Congratulations you just earned 5 more digits", stay: false}};}); < / Code>
Comments
Post a Comment