4214.6 JavaScript

Resources

Watch this Lynda Video here.

W3schools link

Class Video link

Rules

  1. Never use Javascript when you can use HTML5 and CSS3 instead.
  2. Javascript can be both internal and external.

Practice for Thursday

Have a list of products with checkboxes.
Have each item have a price and a quantity box
Have a subtotal
Have a tax
Have a total
Have the date show up in a label (live)

EXAMPLE

  • Red Dress (15.99) show quantity box once checked
  • Blue Dress (19.99) [Quant = 1]
  • Green Dress (20.99) [Quant = 1]
  • Subtotal (39.99)
  • Tax (39.99 x .07)
  • Total = Subtotal + Tax

This purchase was made on [today’s date].


Solution (partial)

external.js.pdf
dress.html.pdf
dress.css.pdf

Written by