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 Management

Task List by Employee

Kelly

Manage office personnel

Process payables

Process payroll

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!