Chapter 8. DOM
The example script that best demonstrates this restructuring is Sandwich Picker. Users can quickly and easily specify the sandwiches they want to order, and the script gathers the data by moving the
<tr>s that contain sandwiches to the order table—in other words, by changing the document structure.