Question
I'm on the last step of a JavaScript/jQuery problem and I'm stuck. I have the prompt method added (I think) but not sure how to
I'm on the last step of a JavaScript/jQuery problem and I'm stuck. I have the prompt method added (I think) but not sure how to go about the if/else statement that must be needed. Here is the step description:
Add jQuery code that responds to the click event of the Add Task button for the first employee. When this button is clicked, use the prompt method to get a description of the task. If a description is entered and the OK button is clicked, add the task to the of the other tasks for the employee. In addition, add code that makes the task you just added draggable.
HTML/jQuery
Task List by Employee
Kelly
Manage office personnel
Process payables
Process payroll
Estelle
Enter orders
Process invoices
CSS
article, aside, figure, footer, header, nav, section { display: block; } * { margin: 0; padding: 0; } body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 87.5%; width: 550px; margin: 0 auto; } section { padding: 15px 25px; } h2 { font-size: 125%; margin-bottom: .5em; } h3 { font-size: 110%; margin-bottom: .5em; } #employee1, #employee2 { list-style-type: none; width: 223px; height: 250px; border: 1px solid blue; } #left { float: left; } #right { float: right; }
p { margin-bottom: 5px; padding: 5px; } .ui-selected { color: blue;
} input { margin-top: 10px; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started