Answer the question
In order to leave comments, you need to log in
How to catch a line with a function adding .append("tr") to a table?
There is a page for ordering goods, and a pop-up basket. The whole thing was written in simpleCart JS, which adds products not by their ID from the database, but stupidly by name. I've been fiddling with the code all night.
Achieved that when adding a product to the cart, its real ID is added to localStorage.
But! I just can’t catch and find the line in the script that actually inserts a new TR into the order form table. I can't, because the shop script is over 8 thousand lines, and the code in the script looks something like this:
i && (a += 1, e["on" + n + "_" + r] = o, e["os" + n + "_" + r] = t))
Answer the question
In order to leave comments, you need to log in
You can debug in Chrome
Write debugger; in code
var a = 1;
debugger;
var b = 2;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question