I am trying to create a new div with a new ID on each click of the button. Ex: click once, the div will have ID "newItem1"
then "newItem2"
and so on.
$(document).ready(function() {
var itemNumber = 1;
$("#post").click(function(){
$("body").append('<div id="newItem + itemNumber"><div>');
itemNumber++;
});
});