Hi Team
I have a problem, i have two buttons but only one works they both have unique properties names. There are no errors, please advice.
Code
Yes
NoHi Team
I have a problem, i have two buttons but only one works they both have unique properties names. There are no errors, please advice.
Yes
NoKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Mar 8, 2023, 3:42 AM EST
Hello Gcobani,
The problem with your buttons is that they have the same ID attribute value ("payslip"). The ID attribute should be unique for each element on the page.
You should change the ID of the second radio input to a different value, for example, "payslip-no", like this:
Thanks
Naimish Makwana