Skip to content

Latest commit

 

History

History

Lesson_2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Lesson 2 – enabling the inputs

When the checkbox of the inner table is enabled we want to enable the input field and write the amount of the row to it. This solution uses the event delegation to add the event listener not to every checkbox but only once to the table and delegate the event to the changed checkbox.

Comes in handy

Covered in this lesson

  • Performing actions on checkbox changes
  • Reading and writing values
  • Event delegation

Get to the code