I created Bootstrap - one row (6-3-3) and below one entire row (12). In first row in small columns (3-3) I set 'collapse' link/button. Goal is to get collapsed row as entire row, instead of 1/4 of the page. I think that I set all well. However, issue is with 'toggle' (my JS knowledge is disaster). By click, 'unfolded' rows are shown and hidden, but I think that I need to set it as toggle as if first row is not closed, second appear below first row, instead to replace it.
How should to look JS (I will provide link in private post, if needed)?
When you first click on link, first row appear, and than click on button, second row will appear under first row (see image), instead to replace first row.
So, what JS will set that 'clicks' will keep to do show/hide, but also to do 'toggle'?
I added the official Bootstrap example from their docs (hidden link) to the same codepen so that you can compare it to yours to help you identify why toggling works with theirs demo but not in yours, which presumably relates to how you split the headers into their own row.
Well... You added Accordions and not a 'raw' content launched by two different clicks. So, example is nothing to do with my. Answer is at hidden link but my issue is that I tried couple of combinations and it not works for me (obviously, I don't know well JS). Briefly, 'toggle' must be invoked, but how ..... that was the question.