How can I make an event in jQuery that adds a “like” button every time I click a “create” button?
Currently I have only a “create” button and every time I click it I want a “like” button to be added to the page.
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.
jQuery has a .append() method. Use this to add any text or markup to an element in you HTML document. Use this to add the necessary markup to create a new button on your page.
http://api.jquery.com/append/