$(document).ready(function(){
$('#playerForm .add-box').click(function(){
addplayerList();
});
});
function addplayerList(){
$('.list-box').append('<p>second</p>');
}
I am trying to make a function which will create a new line of HTML after I press the add button. I have no idea what I did wrong. I checked the code and I believe it should work but some how after I click on add the content <p>second</p> shows and disappears right away.
Demo - it has an error after I click add
postmethod? If none, then you can changemethod="post"tomethod="get"