Condition for 2 buttons

I would like to create a condition, if the user selects Radio button A, the button will be this one.

but when user selects Radio button B, the button will automattically be.

how do i do that? thank you

You need to attach an event listener to the radio buttons, then use (for example) an if else statement to react to the user’s choice.

Using jQuery:

$('input:radio').on('change', function(){
    //access value of changed radio group with $(this).val()
});