首頁  >  選擇器  > :checkbox

返回值:Array<Element(s)> :checkbox

V1.0 概述

匹配所有覈取方塊

示例

描述:

查詢所有覈取方塊

HTML 程式碼:

<form>
  <input type="text" />
  <input type="checkbox" />
  <input type="radio" />
  <input type="image" />
  <input type="file" />
  <input type="submit" />
  <input type="reset" />
  <input type="password" />
  <input type="button" />
  <select><option/></select>
  <textarea></textarea>
  <button></button>
</form>
jQuery 程式碼:

$(":checkbox")
結果:

[ <input type="checkbox" /> ]