Detect Selected Label without radio button

I'm trying to recreate this calculator : https://www.thewebflowagency.com/book-a-call What I understand is, they have hidden the radio button and used text label to select the option. recreated this. Then, I'm not able to see which field is selected.(like the focus state) how do i approach this?
9 Replies
glutonium
glutonium2y ago
r u saying they used the radio to listen for click events?
Abdul Ahad⚡
Abdul Ahad⚡OP2y ago
yes
glutonium
glutonium2y ago
@abdulahad check where I pinged you
Abdul Ahad⚡
Abdul Ahad⚡OP2y ago
did something wrong?
Abdul Ahad⚡
Abdul Ahad⚡OP2y ago
I've did it in the codepen, please check
glutonium
glutonium2y ago
well yaa it seems to be working fine
Abdul Ahad⚡
Abdul Ahad⚡OP2y ago
got it. Thank you so much
Want results from more Discord servers?
Add your server