I need to add div element to another div, via jquery but it creates two divs
$('div.col-direction').append('<div id="newset"></div>');
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.
this is occurring because the function is binded twice with the handler it can be removed by jQuery.unbind() method.
see Documentation
suppose u are writing on click of button-id “btn”
then instead of
use