I am trying to get the id of an element I fetch via PHP file using jQuery [duplicate]

a sample of the PHP file

I want to get the ID of each HTML element after it has been displayed using queryselectorAll. It will enable me to provide other information about the particular item.

I have successfully displayed the HTML elements from a PHP file. The problem is that I can’t get the ID of the same elements after displaying it.