Answer the question
In order to leave comments, you need to log in
How to send li to mail?
Hello.
There is a table created when you click on the "Add to cart" button.
A table is created, data, name and price are placed in li, that is, it is not input
Passed through ajax. I can’t figure out how to send this data to the mail, if it’s not input, Tell me in which direction to dig.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Of course, the question is crazy ... There is no difference where the data was received from: from input or ajax. Send by mail the same way and there and there. And here the table, and how it is connected with the list element is not at all clear.
If ajax, then you use JS at least.
var a=getElementById('id-li');
var textLi=a.text();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question