How would I transform a table
| Name |
Price |
-
2020-12-20 00:48
You could try:
function convertToList() {
var list = $("");
$("table tr").each(function() {
var children = $(this).children();
list.append("" + children[0].text() + "
" + children[1] + "
");
}
$("table").replaceWith(list);
}