Just trying to create a very basic to-do app and for whatever reason, my checkboxes are not showing up.
html:
<div class="todo-box">
<input id="first-contact" type="text" placeholder="what do you have to do?"></input>
<button>submit</button>
<div id="list-section">
</div>
</div>
and jquery:
$( document ).ready(function() {
$('button').on('click', function() {
var a = $('#first-contact').val().toLowerCase();
$('<p>').attr('class', 'list-item').append(a).appendTo('#list-section');
$('<input>', {type: "checkbox"}).appendTo('#list-item');
var pAmount = $('#list-section').children().length;
if (pAmount > 6) {
$('#list-section p').last().remove();
}
});
});
<p>with the checkbox in it?