SoFunction
Updated on 2025-02-28

js get a checkbox separately to see if it is selected

js get a checkbox separately to see if it is selected

Updated: September 22, 2014 17:32:34 Submission: whsnow
This article mainly shares with you the specific implementation of obtaining a checkbox to see if it is selected. It is very simple, but very practical. Friends who need it can refer to it.
<script language=javascript> 
function check(){ 
var xz=("xz"); 
alert(); 
} 
</script> 
<html> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<input type=checkbox name="xz"  value=1> 
<input type=submit name=s1 value="submit" onclick="return check();"> 
</html>
  • checkbox

Related Articles

  • 8 common array deduplication code examples for JavaScript

    This article mainly introduces 8 commonly used array deduplication code examples in JavaScript. The example code is introduced in this article in detail, which has certain reference value for everyone's learning or work. Friends who need it can refer to it.
    2020-09-09
  • Process of converting form serialization data into objects based on JavaScript (allowing objects to include objects)

    This article mainly introduces the processing of converting form serialization data into objects based on JavaScript (allowing objects to include objects). Friends who need it can refer to it.
    2015-12-12
  • Mini program implements small timer function

    This article mainly introduces the small function of implementing the timer of the mini program. The sample code in the article is introduced in detail and has a certain reference value. Interested friends can refer to it.
    2022-09-09
  • Detailed explanation of Javascript closures and example code

    This article mainly introduces the detailed explanation of Javascript closures and related information about the example code. Closures are a particularly abstract concept, especially the definition given by the ECMA specification. If you do not have practical experience, it is difficult to understand it from the definition. Friends who need it can refer to it.
    2016-11-11
  • Deeply understand the concepts and principles of JavaScript currying

    In JS programming, functions are first-class citizens and have strong flexibility and reusability. Currying, as a high-level technology, can further improve the reusability and flexibility of functions. In this blog, we will deeply explore the concept and principles of Currying in JS and understand its application scenarios in actual development. Friends who need it can refer to it.
    2023-06-06
  • A comprehensive collection of commonly used JavaScript functions

    This article mainly shares a very comprehensive collection of commonly used JavaScript functions, including some commonly used JS objects, basic data structures, functional functions, etc. Interested friends can refer to it.
    2016-01-01
  • Two ways to log in to the front-end js on the web page to press Enter key to achieve login

    Below, the editor will bring you an article on the front-end login of the web page, press Enter key to achieve login. The editor thinks it is quite good. Now I will share it with you and give you a reference.
    2016-05-05
  • Two implementation methods for pushing message in WeChat applet templates

    This article mainly introduces two implementation methods of WeChat mini program template message push. The example code is introduced in this article in detail, which has certain reference learning value for everyone's study or work. Friends who need it, please learn with the editor below.
    2019-08-08
  • Case of switching classification and quantity addition and subtraction functions of WeChat mini program takeaway purchase page

    This article mainly introduces the switching classification and quantity addition and subtraction functions of WeChat mini program takeaway purchase page. It analyzes the operation skills related to WeChat mini program status recording, judgment and numerical operations based on specific examples. Friends who need it can refer to it.
    2019-01-01
  • Share some of my thoughts and thoughts on JS plug-in development

    This article mainly shares with you some of my thoughts and experiences on JS plug-in development. Friends who need it can refer to it.
    2016-02-02

Latest Comments