Home > Web Front-end > JS Tutorial > JQuery operates checkbox (loop acquisition)_jquery

JQuery operates checkbox (loop acquisition)_jquery

WBOY
Release: 2016-05-16 18:06:32
Original
1196 people have browsed it
Copy code The code is as follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoCheckBox.aspx.cs" Inherits="DemoCheckBox" %>



Untitled page














checkbox1

checkbox2

checkbox3

checkbox4

checkbox5

checkbox6

checkbox7

checkbox8





jquery loop reading Get the checkbox value
Copy code The code is as follows:

$("input[type=checkbox] [checked]").each(function(){ //Since multiple check boxes are generally selected, you can output them in a loop
alert($(this).val());
});
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template