There is a form with an ordinary input-text field, below is a list of entered data, which is taken from the database.
1) There is a function $("#FormSubmit").click(function () {..} , which adds the name just entered to the list, via append . Next, this name is transmitted via ajax and added to the database.
2) There is a function $(".cat_del").click(function() {..} , which when you click on the cross (delete) hides the desired line from the list via hide() , then ajax sends a command to delete the desired entry from the database Everything works if you load the page and start deleting, but if you add a new entry and click on .cat_del (delete) on it, the function is not called, but it starts working if you reload the page.
Why it happens?
