This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1>JavaScript Homework</h1> | |
| <p>Add the JavaScript code needed to enable auto-complete on this form. Whenever the checkbox is checked, the code should automatically copy the values from Shipping Name and Shipping Zip into the Billing Name and Billing Zip. If the checkbox is unchecked, the Billing Name and Billing Zip should go blank.</p> | |
| <form> | |
| <fieldset> | |
| <legend>Shipping Information</legend> | |
| <label for ="shippingName">Name:</label> | |
| <input type = "text" name = "shipName" id = "shippingName" required><br/> | |
| <label for = "shippingZip">Zip code:</label> | |
| <input type = "text" name = "shipZip" id = "shippingZip" pattern = "[0-9]{5}" required><br/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Photo Gallery</title> | |
| <link rel="stylesheet" href="css/gallery.css"> | |
| <script src = "js/gallery.js"></script> | |
| </head> | |
| <body> | |