I have two buttons, one to activate category and another to disable, each with its layout. I need to switch between the two, when one active, it changes in the bank to activated and is displayed while the other does not appear and vice versa. But I'm not understanding the logic of how to do this. I know it's with ajax, for an alter.php for example.
<button class="on-default remove-row text-warning"><i=class="fa fa-thumbs-o-down"><i></button>
<button class="on-default remove-row text-success"><i=class="fa fa-thumbs-o-up"><i></button>
Can anyone give a force?