-1
How to get the value of various buttons using Javascript ?
Qual cor você prefere ?
_______ ______ ______
|verde| |Azul| |Rosa|
------- ------ ------
Qual sorvete você prefere ?
___________ _________ ______
|Chocolate| |Morango| |Uva|
----------- --------- ------
And if the person selects "Blue" and "Chocolate" for example this value is displayed in a div.
and that I’m trying to do the same logic of the buttons of Buzzfeed for example, which are buttons for what I understand, but I’m not sure if this is possible
– Brenda Xavier
Then you could put functions in the "onclick" property of the buttons where by clicking one of them you put the "disabled" property of the other two as "true"
– Pedro Junior