Skip to content

Commit

Permalink
Fix "Secret Sauce" html example code for option select
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivoz committed Jul 30, 2013
1 parent 2fd522b commit 6a89a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ There are a couple of gotchas with select boxes:
* There is no built-in way to say "Select an option..." when the user has not selected an option yet. Although this is a very common scenario, and the browser automatically selects the first option which may be confusing. In HTML you have to specifically create a `<option>` tag containing "Select an option...".
* To automatically select an option when the page loads you can use the `selected` attribute on the option, like this:

<option selected="selected" value="secret">Secret Sauce</option>
<option selected="selected" value="secret">Secret Sauce</option>

* There is an attribute called `multiple` which allows multiple selections in the `<select>` tag. The only reason I mention this is to recommend **never** using it.

Expand Down

1 comment on commit 6a89a3d

@Ivoz
Copy link
Member Author

@Ivoz Ivoz commented on 6a89a3d Jul 30, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #9

Please sign in to comment.