Making Cards Selectable in Browser

I need some help!
i designed a form that a user fills when siging up and added two cards for users to select which type of user they are in my application. I want a user to select one of the cards as per their interest then populate in my database what they are.
After the card is clicked, iwant it to show that it is selected.

How can i pass over this?