[Prototype] 表單核取方塊 checkbox 基本語法

開頭的 input type="checkbox" 是宣告一個選項按鈕,name 是選項的名稱,value 是選項的值,每一個 checkbox 的名稱可以是相同的,這樣就是一整組,若選項的 name 不同,就是不同一組的,設計師可依照實際情況而決定 name 的編排。
[<input type="checkbox" name="" value="">]

表單核取方塊 checkbox 範例

[<form>請勾選您想購買的項目<br>
<input type="checkbox" value="1" name="Product_1"> 商品 1<br>
<input type="checkbox" value="2" name="Product_2"> 商品 2<br>
<input type="checkbox" value="3" name="Product_3"> 商品 3<br>
</form>]

範例呈現結果

請勾選您想購買的項目
商品 1
商品 2
商品 3

COMMENTS

您可能也會有興趣

名稱

小規機,3,中美晶,7,中國保健食品,4,中菲,1,日照中心,5,功能性原料,1,生技產業常識,1,私廚,1,其他類別,2,妮喃小語,6,金門智慧城鄉長照計畫,1,長照與科技,2,青田街,1,哈爾濱,1,食品原料,1,食旅推薦,2,食記,1,海南島,1,健康常識,5,區塊鏈,1,產生器,1,軟體相關職位,2,智慧城鄉計劃案,2,筆記,5,雲端運算,1,跨境電商,6,聚會推薦,1,線上應用,1,養老產業,1,藝術,1,讀書筆記,6,BLOGGER,5,Business,1,featured,1,Google Drive,1,Lightroom Preset,2,LYTONE,3,MAC,1,Photography Portfolio,26,She_Design tapas soju bar,5,Slider,5,VSCode,1,
ltr
item
陳銘淦攝影集(阿淦正撰): [Prototype] 表單核取方塊 checkbox 基本語法
[Prototype] 表單核取方塊 checkbox 基本語法
陳銘淦攝影集(阿淦正撰)
https://www.popcapworld.tw/2020/08/checkbox.html
https://www.popcapworld.tw/
https://www.popcapworld.tw/
https://www.popcapworld.tw/2020/08/checkbox.html
true
4977809703546686141
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content