JQuery gets the selected value of the checkbox

From , 5 Years ago, written in JavaScript, viewed 96 times.
URL https://pastebin.vip/view/d96409bf
  1. if($("#id").attr("checked")){//选中
  2.         alert($("#id").val());//打印选中的值
  3. }

Reply to "JQuery gets the selected value of the checkbox"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website