Giter VIP home page Giter VIP logo

build-an-interactive-form's Introduction

Build-an-Interactive-Form

Treehouse Techdegree Project #3 - Build an Interactive Form

Live Demo of this project

Set focus on the first text field. When the page loads, give focus to the first text field

Reveal a text field when the "Other" option is selected from the "Job Role" drop down menu. Make sure you add an text input field. Use the id of "other-title" for the field. Add placeholder text of "Your Title" for the field

For the T-Shirt color menu, only display the options that match the design selected in the "Design" menu.

If the user selects a workshop, don't allow selection of a workshop at the same date and time -- you should disable the checkbox and visually indicate that the workshop in the competing time slot isn't available.

When a user unchecks an activity, make sure that competing activities (if there are any) are no longer disabled.

As a user selects activities to register for, a running total is listed below the list of checkboxes. For example, if the user selects "Main conference" then Total: $200 should appear. If they add 1 workshop the total should change to Total: $900.

When a user selects the "PayPal" payment option, display the Paypal information, and hide the credit card information. Display error messages and don't let the user submit the form if any of these validation errors exist:

Name field can't be empty

Email field must be a validly formatted e-mail address (you don't have to check that it's a real e-mail address, just that it's formatted like one: [email protected] for example. You'll need to use a regular expression to get this requirement. See the list of Resources for links to learn about regular expressions.

At least one activity must be checked from the list under "Register for Actitivities."

Payment option must be selected.

If "Credit card" is the selected payment option, make sure the user supplied a credit card number, a zip code, and a 3 number CVV value.

Extra Credit

Hide the "Color" label and select menu until a T-Shirt design is selected from the "Design" menu.

Style the "select" menus (drop down menus) on the form, so they match the styling of the text fields (see Resources links for an article on how to improve the look of select menus using CSS and JavaScript).

Validate the credit card number so that it's a validly formatted credit card number.

build-an-interactive-form's People

Contributors

elizad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.