Open codingbootcampseu opened 2 years ago
Show all todos
Show open todos
Show done todos
Hints
You can use the hidden attribute to show or hide an element.
hidden
const el = document.querySelector('li'); el.hidden = true; // element is hidden el.hidden = false; // element is not hidden
The configuration of radio buttons can be tricky. They need the same name attribute and a dedicated value attribute.
name
value
<label for="radio-yes">Yes!</label> <input type="radio" name="xxx" value="yes" id="radio-yes"> <label for="radio-no">No!</label> <input type="radio" name="xxx" value="no" id="radio-no">
Example Solution and Comparison
Show all todos
,Show open todos
andShow done todos
Show all todos
option should be selected by defaultHints
You can use the
hidden
attribute to show or hide an element.The configuration of radio buttons can be tricky. They need the same
name
attribute and a dedicatedvalue
attribute.Example Solution and Comparison