I always strive to provide clear and specific details about my question.
My goal is to create an Alert Box for different types of inputs, where all inputs will trigger the same alert message in the box instead of separate alerts. I attempted to implement a switch function for the message, but it seems there is an issue. After adding the switch function to the code, the ADD button no longer functions as intended.
I have shared my complete code here including HTML, jQuery, and CSS. You can identify the section marked with /* ---- */ where the problem occurs.
The table works correctly because I left the Switcher in place. If you move the message above in the blockade area and keep the switcher on, you'll notice that the add button stops working.
I would greatly appreciate any help in resolving this issue. Thank you for your assistance :)
(JavaScript code snippet included)
I also want to display specific messages for each input. For example:
Task Select: You haven't selected any task yet :)
Thank you in advance for your help!
I am available to provide any additional information needed to assist me further.