From 0505d2138392f5adb0b95933880fcc9209ebd037 Mon Sep 17 00:00:00 2001 From: RameshT Date: Fri, 9 Aug 2024 12:33:11 +0530 Subject: [PATCH] Your commit message --- assets/js/updation.js | 48 +++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 22 deletions(-) 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( - '' + '' ) } })