@Vaib215
Posted
Well done Alert!
Just FYI, there's a pair of elements in HTML know as detail
and summary
which are specifically designed for these purposes. You can checkout mdn docs for them or you can checkout my solution for the same.
@TomasAlbert
Posted
@Vaib215 Thanks for the reply and the reminder of the details
and summary
. I like these native elements but always struggle with styling it :)
@Vaib215
Posted
@TomasAlbert Fully agree