表單域選擇器可快速選取 input、textarea、select、button 等元素。常見寫法包括 :input、:text、:password、:radio、:checkbox、:file、:image、:hidden、:submit、:reset 等。
使用時可搭配 attr、css、val 等方法,例如為文字框設定值、為密碼框加上提示、為 radio 或 checkbox 設定 checked。注意 select 與 textarea 本身不是表單域選擇器,需要直接用標籤選取。