Hello. I do a cruise on jquery / ajax / laravel. Records are added, edited, deleted. But, the problem is, if you add a new element by adding, it is appended by the script to the table with required id in attributes, but after adding (without reloading the page) action / edit buttons, delete - NOT ACTIVE. Help find out the cause and solutions. Thank.

Example of work on the test here - goo.gl/moxqSl Link to the js file - goo.gl/okMkmW

PS infa is recorded in the database normally.

  • Hang events of clicks on the parent for example. `$ ('parent'). on ('click', 'child_button', function () {}); - Moonvvell
  • I made $ ('td'). On ('click', 'button.edit_cat', function () {- however, the event still does not work on the newly added element. On older ones, the event works fine. - Alkos
  • If you add a line to the script - td - then you need to hang it on the container that is always there - on the table, for example, into which you will insert the lines - Moonvvell
  • Thank you Happened! - Alkos

0