I am implementing comments section using ajax. Comments have options reply
and delete
. When they are clicked, reply form or delete confirm options are shown.
After clicking delete
, it expands :
The problem is that after a new comment is posted through ajax, jquery for the new comments aren't loaded and so these buttons don't work.
How do I reload the jquery of the page without page refresh and get these new comments to work? Any solution? Thanks !