javascript – How to get the identifier of an option and reuse it with a PHP variable

I develop a web application to sell products. I need to add the item to the invoice by clicking the "Add Invoice Item" button. (there in this space) selected item in the select products.

How can i do this through ID of the selected product?

The idea is to add different elements to the bill.

follows the attached picture