$("input").keypress(function(e){
let value = $("input").val()
if(e.which == 13 && value != ""){
$("input").val("")
$(".itemCategRow:nth-child(1)").append("<div class=\"button\">" + value + "</div>")
}
})
$(".button").clicked(function(){
alert($(this).index())
})
nothing happens when I click the buttons, the reason for getting their certain indexes is to remove certain buttons.