diff --git a/assets/js/updation.js b/assets/js/updation.js index f306f81..1879f4b 100644 --- a/assets/js/updation.js +++ b/assets/js/updation.js @@ -2,28 +2,32 @@ $(document).ready(function () { let index = 1 let activeSection = null - function addOption(type, container) - let optionHtml - if (type === 'multiple-choice' || type === 'checkboxes') { - optionHtml = ` -
- - - - × -
- ` - } else if (type === 'dropdown') { - optionHtml = ` -
- - × -
- ` - } - container.append(optionHtml) - } + + + + function addOption(type, container) + let optionHtml + + if (type === 'multiple-choice' || type === 'checkboxes') { + optionHtml = ` +
+ + + + × +
+ ` + } else if (type === 'dropdown') { + optionHtml = ` +
+ + × +
+ ` + } + container.append(optionHtml) + } function createFormSection() { let newSection = ` @@ -96,7 +100,7 @@ $(document).ready(function () { $(this) .closest('.form-section') .append( - '' + '' ) } })