:::

3-3-4-4 select 表單元件-下拉選單

  1. select 下拉選單可參考:https://bootstrap5.hexschool.com/docs/5.0/forms/select/
  2. select 下拉選單基本語法:
    <select class="form-select" name="輸入框name" id="輸入框ID">
      <option selected>請選擇</option>
      <option value="值1">選項1</option>
      <option value="值2">選項2</option>
      <option value="值3">選項3</option>
      <option value="值4">選項4</option>
    </select>

     

  3. 例如:
    <div class="row mb-3">
      <label for="cate_id" class="col-sm-2 col-form-label"> 文章分類 </label>
      <div class="col-sm-10">
        <select class="form-select" name="cate_id" id="cate_id">
          <option>請選擇</option>
          <option value="1">榮譽榜</option>
          <option value="2">傑出校友</option>
          <option value="3" selected>校園新聞</option>
          <option value="4">海外交流</option>
        </select>
      </div>
    </div>


:::

書籍目錄

展開 | 闔起

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D52%26tbdsn%3D1794

計數器

今天: 4170417041704170
昨天: 5069506950695069
總計: 5134618513461851346185134618513461851346185134618