Create a Set of Radio Buttons มีแจ้งเตือน แต่ละ radio button element คู่หนึ่งควรจะถูกเก็บไว้ใน label element ของมันเอง
ผิดตรงไหนแนะนำด้วยครับ
CatPhotoApp
Click here to view more cat photos.
Things cats love:
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
Top 3 things cats hate:
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
<input id="indoor" type="radio" name="indoor-outdoor">
<label for="indoor">indoor</label>
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">outdoor</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>