Home >Web Front-end >JS Tutorial >Example of Javascript merging cells with the same content in a table_javascript tips
Rendering:
HTML code:
a | 1 | 2 | 3 | 4 | 5 |
a | 1 | 2 | 3 | 4 | 6 |
a | 2 | 3 | 3 | 4 | |
b | 3 | 4 | 6 | 7 | |
b | 3 | 5 | 6 | 7 | |
cc | 2 | 3 | 4 | 5 | |
cc | 2 | 3 | 5 | 5 | |
d | 1 | 2 | 3 | 4 | |
e | 1 | 2 | 3 | 4 |
a | 1 | 2 | 3 | 4 | 5 |
a | 1 | 2 | 3 | 4 | 6 |
a | 2 | 3 | 3 | 4 | |
b | 3 | 4 | 6 | 7 | |
b | 3 | 5 | 6 | 7 | |
cc | 2 | 3 | 4 | 5 | |
cc | 2 | 3 | 5 | 5 | |
d | 1 | 2 | 3 | 4 | |
e | 1 | 2 | 3 | 4 |