How can we do some action in JQuery when a button in a template is clicked by the cursor. The template will have a button element.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally use
clickevent:Or using
on(JQuery v1.7 and up):If your template is a string or JQuery object then try this before applying template: