I haven't started coding yet, but I'm contemplating the overall strategy. My front end is primarily composed of HTML tables, giving it an Excel-like appearance. I am considering generating default pages and then using JavaScript to dynamically move entire rows and columns based on their IDs. The table cells could contain a variety of elements like labels, textboxes, images, and checkboxes.
How should I target particular rows using JavaScript without resorting to using <div>
tags?
For example, if I write a <th>
element as
<th class="col1" colspan="1"><%= nodes.last == @map.keys.first ? label_tag("#{nodes.last.to_label}") : label_tag("#{nodes.last}") %></th>
If I assign it an ID, would selecting that element by its ID in JavaScript also encompass the entire row context?