I try to find similar solution for ajax, but in amp I can't use it right?
This is what I would like to make (link).
You can use AMP actions and events and bind the buttons with the on
attribute.
You need to load the content beforehand tho. If you need it loaded dynamically, you have to use amp-list