D
D
DaBags2018-03-06 20:17:32
css
DaBags, 2018-03-06 20:17:32

How to make table rows expandable?

So, there is an html dynamic table (therefore, setting id, class for tr tags will not work) and you need to initially display, for example, 10 lines, and then the "show all" button goes. When pressed, it is desirable (but not necessary) to smoothly expand the entire table. Rollback is not required.

But you need to take into account that there may be fewer lines, then the "show all" button should not be.

Maybe someone saw a similar implementation, some developments?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-03-06
@DaBags

A script of three lines, what developments do you need?
https://jsfiddle.net/905xos45/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question