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
r u saying they used the radio to listen for click events?
yes
@abdulahad check where I pinged you
did something wrong?
I've did it in the codepen, please check
well yaa it seems to be working fine
got it.
Thank you so much