Dynamic List Delete (Event Delegation)

JavaScript Medium 2 views
Back to Questions

Problem Description

You have
    where each
  • contains text and a Delete. Items can be added later. On clicking Delete, remove that
  • . Use event delegation.

Input Format

No input.

Output Format

No output (DOM change).

Constraints

Assume #list exists and delete buttons have class del.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next