看板 Web_Design 關於我們 聯絡資訊
大家好  我目前把 type=text 和 type=email 分開來寫 如下 https://jsfiddle.net/58ro91b2/ 請問 有辦法把type=text 和 type=email 寫在一個[]裡面嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.138.71.81 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1644821443.A.F51.html ※ 編輯: kisha024 (223.138.71.81 臺灣), 02/14/2022 14:56:33
ymcheung: input[type] 就可以了 02/14 23:35
ssccg: 不行,一樓原PO要的是text or email,不是有type就好 02/15 12:02
treecko: 應該不行 在意的話能用:is()寫的精簡一點 02/15 16:16
謝謝大家 ※ 編輯: kisha024 (220.143.7.112 臺灣), 02/16/2022 00:10:05
ymcheung: 沒錯,這是在假設頁面上只有這兩組的情況 02/19 10:37