add event listener for overide checkbox

This commit is contained in:
Ryan Mwangi 2024-10-04 15:55:31 +03:00
parent f77f3e57ff
commit 73781d7570

View file

@ -10,6 +10,8 @@ const form = document.getElementById('merge-form');
newCalendar.className = 'calendar';
newCalendar.innerHTML = `
<input type="text" id="prefix-${calendarIndex}" placeholder="Prefix">
<input type="checkbox" id="override-${calendarIndex}">
<label for="override-${calendarIndex}">Override</label>
<input type="url" id="url-${calendarIndex}" placeholder="Calendar URL">
`;
calendars.appendChild(newCalendar);