0

I am building an attendance management app.

The list has two different buttons to mark either present or absent. How should I add a click listener for both of the buttons?

Hearen
  • 7,420
  • 4
  • 53
  • 63
Vipul Gupta
  • 51
  • 1
  • 4
  • 1
    Possible duplicate of [add onclick listener to predefined button?](https://stackoverflow.com/questions/5395114/add-onclick-listener-to-predefined-button) – Ben Jun 13 '18 at 10:05
  • For situations like this where there are only 2 options you should use a checkbox or a switch or a togglebutton. You don't need 2 buttons. –  Jun 13 '18 at 10:14

0 Answers0