Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the HTML file, add a cell to the end of each row except the header row. In that cell, add a button element with

In the HTML file, add a cell to the end of each row except the header row. In that cell, add a button element with a class done. The text of the button should be Done.

20%

2. In the JavaScript file, modify the event handler for the click event of the Add Appointment button so it adds new appointments that have the same format as the existing appointments you just modified.

30%

3. Add an event handler for the click event of the Done buttons. Be sure to code this event handler so it works for new appointments as well as existing tasks. Clicking Done button should remove the row where this button sits.

50%

You can watch how your solved assignment will look like here:

https://www.useloom.com/share/0e44db5ff1b242938acc7006168f6f14

Appointment List

Appointment list
NAMETIMEPLACE
John McLeodTue, 22 May, 11:20am111 Owen Street
Anne SimpsonWed, 23 May, 4:00pm21 Hardwood Av

***********************************

$(document).ready(function() {

$("#add").click(function() {

var html = "";

html += "" + $("#name").val() + "" + $("#time").val() + "" + $("#place").val() + "";

$("table").append(html);

$(":text").val("");

}); // end click

}); // end ready

****************************************

CSS CODE

* {

margin: 0;

padding: 0;

}

body {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 87.5%;

width: 1000px;

margin: 0 auto;

padding: 20px;

border: 3px solid blue;

}

table caption {

font-size: 170%;

margin-bottom: .4em;

}

h2 {

font-size: 140%;

padding: .25em 0 .25em 0;

margin-bottom: .5em;

margin-left: 2em;

}

p {

padding-bottom: .25em;

padding-left: 25px;

}

aside {

float: left;

width: 375px;

}

aside label {

float: left;

width: 4em;

text-align: right;

}

aside input {

margin-left: 1em;

margin-bottom: .5em;

}

#name, #time, #place {

width: 200px;

}

main {

float: left;

width: 370px;

padding-left: 25px;

}

main input {

margin-bottom: .5em;

}

main p {

float: right;

width: 250px;

padding-top: .2em;

padding-left: 1em;

}

aside #add, main input {

padding: .2em;

}

footer {

clear: both;

}

table {

width: 600px;

border: 1px solid #ddd;

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions