Skip to content

Commit

Permalink
Merge pull request #124 from LaunchCodeEducation/june-bug-stomp
Browse files Browse the repository at this point in the history
Patching Fetch Exercises and Studio
  • Loading branch information
gildedgardenia authored Jun 28, 2024
2 parents a1fade6 + 149ce0e commit 561a1c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions content/user-input-with-forms/exercises/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ Code your solution within the `javascript-projects/user-input-with-forms/exercis
Please follow the steps below and good luck!

1. Create a `<form>` with these attributes.
- Set `method` to `"POST"`
- Set `action` to `"https://handlers.education.launchcode.org/request-parrot"`
1. Set `method` to `"POST"`
1. Set `action` to `"https://handlers.education.launchcode.org/request-parrot"`

{{% expand "Check Your Solution" %}}
```html
Expand All @@ -67,7 +67,7 @@ Please follow the steps below and good luck!
{{% /expand %}}

2. Add a `<label>` and `<input>` for Test Name to the `<form>`.
- `<label>Test Name <input type="text" name="testName"/></label>`.
1. `<label>Test Name <input type="text" name="testName"/></label>`.

3. Can you submit the form now? What is missing?

Expand All @@ -77,16 +77,16 @@ You can't submit the form with a button to submit it!

4. Add a `<button>Run Simulation</button>` to the `<form>`.
5. Enter a value into the "testName" input and submit the form.
a. Was the value properly submitted to the form handler?
1. Was the value properly submitted to the form handler?

{{% expand "Check Your Solution" %}}

Yes! At this point, your form should be able to handle input into the "testName" field.
{{% /expand %}}

6. Repeat steps 2 and 5 for the remaining data fields from the [data table]({{% relref "#data-fields-for-the-rocket-simulation-form" %}}).
- Pay attention to the input types and possible options.
- Don't forget to add a `<label>` for each input.
1. Pay attention to the input types and possible options.
1. Don't forget to add a `<label>` for each input.

## Bonus Mission

Expand Down
2 changes: 1 addition & 1 deletion content/user-input-with-forms/studio/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ trigger a `submit` event at precisely this moment. Therefore, we can create
an event handler to solve this problem. Our handler will:

1. Retrieve the selected value from the radio group.
1 Use this value to determine the `action` URL, based on the selected search engine.
1. Use this value to determine the `action` URL, based on the selected search engine.
1. Set the `action` attribute of the form.

### Create and Register the Handler
Expand Down

0 comments on commit 561a1c2

Please sign in to comment.