Đi tới nội dung
Mục
Fiesta

choice-field

Lựa chọn và thao tác Các điều khiển để chọn từ các lựa chọn, và các hàng kết thúc một biểu mẫu. Mỗi cái nằm trong một rst-box có đệm, vì đó là tấm thẻ mà biểu mẫu nằm trong.

Thẻ lựa chọn: dạng nhóm nút chọn hoặc hộp kiểm được ưa dùng. Tiêu đề giữ ngắn; phần mô tả để giải thích.

Mỗi ví dụ đều hoạt động thật, nhưng các liên kết trong đó không dẫn đến đâu. HTML hiển thị mã đánh dấu để sao chép.

Chọn một

Xem trước

Đặt đoạn này bên trong <section rst-box><form rst-form>.

<fieldset rst-choice>
  <legend>Gói</legend>
  <div rst-choice-cards>
    <label>
      <input type="radio" name="plan" value="free">
      <span>
        <span rst-choice-title>Miễn phí</span>
        <span rst-choice-desc>Một dự án, hỗ trợ từ cộng đồng.</span>
      </span>
    </label>
    <label>
      <input type="radio" name="plan" value="pro" checked>
      <span>
        <span rst-choice-title>Chuyên nghiệp</span>
        <span rst-choice-desc>Không giới hạn dự án và một hộp thư hỗ trợ.</span>
      </span>
    </label>
  </div>
</fieldset>

Chọn bao nhiêu tùy ý

Xem trước

Đặt đoạn này bên trong <section rst-box><form rst-form>.

<fieldset rst-choice>
  <legend>Gửi cho tôi</legend>
  <div rst-choice-cards>
    <label>
      <input type="checkbox" name="digest" value="replies" checked>
      <span>
        <span rst-choice-title>Trả lời</span>
        <span rst-choice-desc>Ngay khi có.</span>
      </span>
    </label>
    <label>
      <input type="checkbox" name="digest" value="weekly">
      <span>
        <span rst-choice-title>Bản tóm tắt hằng tuần</span>
        <span rst-choice-desc>Sáng thứ Hai.</span>
      </span>
    </label>
  </div>
</fieldset>