Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form lesson #1

Merged
merged 4 commits into from
Jan 18, 2019
Merged

form lesson #1

merged 4 commits into from
Jan 18, 2019

Conversation

YoshiakiTaniguchi
Copy link
Owner

fromはあまり触ってこなかったので、課題やりました!
添削お願い致します!

exercise.html Outdated
</div>
<div>
性別: <label>
<input type="radio" required name="sex">男性

Choose a reason for hiding this comment

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

value属性を使って選択したのが 男性 なのか 女性 なのかわかるようにしてください。

送信ボタンを押した後の値
image

期待する値
image

exercise.html Outdated
<p>以下のフォームを埋めて下さい。(※は必須項目)</p>
<form action="">
<div>
<label>※ユーザー名: <input type="text" required></label>

Choose a reason for hiding this comment

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

いくつか name属性が使われていないので、送信ボタンを押した後に、値が取得できない状態となっています。

現状取得している内容
image

期待する取得内容
image

@tsuyopon-xyz
Copy link

コメントしたのでご確認お願いしますmm

</label>
<label>
<input type="radio" required name="sex">女性
<input type="radio" required name="sex" value="woman">女性

Choose a reason for hiding this comment

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

細かいですが、性別を表す英単語を使う場合は、それぞれ対応したものを使うほうが良いかと思います。

  • man と woman
  • male と female

exercise.html Outdated
</label>
</div>
<div>
<p>備考欄:</p> <textarea cols="30" rows="10"></textarea>
Copy link

@tsuyopon-xyz tsuyopon-xyz Jan 18, 2019

Choose a reason for hiding this comment

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

textareaにname属性が無いため送信ボタンを押しても値が取得できない状態になっています。

textareaに文字を入力してもURLに出てこない

image

@tsuyopon-xyz
Copy link

2点コメントしたのでご確認お願いしますmm

@tsuyopon-xyz
Copy link

👍

OKです^^
マージして構いません^^

@YoshiakiTaniguchi YoshiakiTaniguchi merged commit aeaf7a2 into master Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants