search
HomeWeb Front-endJS Tutorialjs gets the background fields and changes the selected status of the checkbox code_javascript skills

Copy code The code is as follows:

Whether it is a subcontractor



Whether it is the general contractor


  

zbr = ("Y".equals(String.valueOf(map.get("ylzd11"))))?"1":"0";////Is it the general contractor

fbr = ("Y".equals(String.valueOf(map.get("ylzd12"))))?"1":"0";//Whether it is a subcontractor
return "jzysuccess";

function init(){

//The payer type code of the general invoice 1 represents the unit 0 represents the individual

if($("#fkfLxDm").val()=='1'){
$('input[type=radio][value=1]')[0].checked = true;
}else if ($("#fkfLxDm").val()=='0'){
$('input[type=radio][value=0]')[0].checked = true;
}

//Construction industry unified invoice Whether you are the general contractor
if($("#zbr").val()=='1'){
// zbr The ID of the general contractor must be accurate and unique
$("#zbr1")[0].value = true;
alert($("#zbr" ).val());
$('input[type=checkbox][value=true]')[0].checked =true;
alert($("#fbr").val() );
}else {
$("#zbr")[0].value = false;
$('input[type=checkbox][value=false]')[0].checked ==false;
}
//Construction industry unified invoice Whether it is a subcontractor
alert($("#fbr").val());
if($("#fbr ").val()=='1'){
// fbr subcontractor id must be accurate and unique
$ ("#fbr1")[0].value = true;
$('input[type=checkbox][value=true]')[1].checked =true;

}else {
$("#fbr")[0].value = false;
$('input[type=checkbox][value=false]')[1].checked =false;
}
}

Statement
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
处于待机状态的连接状态:已断开,原因:NIC合规性处于待机状态的连接状态:已断开,原因:NIC合规性Feb 19, 2024 pm 03:15 PM

“事件日志消息中的连接状态显示为待机状态:已断开连接,原因是符合NIC标准。这意味着系统在待机模式下,网络接口卡(NIC)已断开连接。虽然这通常是网络问题,但也可能由软件和硬件冲突引起。在接下来的讨论中,我们将探讨如何解决这一问题。”待机连接断开的原因是什么?NIC合规性?如果在Windows事件查看器中发现“ConnectivityStatusinStandby:DisConnected,Reason:NICCompliance”消息,这表示您的NIC或网络接口控制器可能存在问题。这种情况通常

陌陌状态怎么设置陌陌状态怎么设置Mar 01, 2024 pm 12:10 PM

陌陌这款广为人知的社交平台,为用户的日常社交提供了丰富的功能服务。在陌陌上,用户可以轻松分享生活状态、结交朋友、进行聊天等。其中设置状态功能让用户能够向其他展示自己当前的心情和状态,进而吸引更多人的关注和交流。那么究竟该如何设置自己的陌陌状态呢,下文中就为大家带来详细的内容介绍!陌陌怎么设置状态?1、打开陌陌,点击右下角更多,找到并点击每日状态。2、选择状态。3、即可显示设置的状态。

如何查看服务器状态如何查看服务器状态Oct 09, 2023 am 10:10 AM

查看服务器状态的方法有使用命令行工具、图形界面工具、监控工具、日志文件和远程管理工具等。详细介绍:1、使用命令行工具,在Linux或Unix服务器上,可以使用命令行工具来查看服务器的状态;2、使用图形界面工具,对于具有图形界面的服务器操作系统,可以使用系统提供的图形界面工具来查看服务器状态;3、使用监控工具,可以使用专门的监控工具来实时监视服务器的状态等等。

如何在安卓手机上的WhatsApp上离线显示如何在安卓手机上的WhatsApp上离线显示Jul 14, 2023 am 08:21 AM

想要显示为“离线”或不想在WhatsApp上与您的朋友分享您的当前状态?有一个简单而巧妙的技巧可以做到这一点。您可以调整WhatsApp设置,以便您的朋友或其他人无法在其中看到您的当前状态(离线或上次看到)。如何在您的WhatsApp状态栏上显示为离线状态?这是一个非常简单和简化的过程。因此,请立即执行以下步骤。步骤1–在手机上打开WhatsApp。步骤2–点击⋮并选择打开“设置”。第3步–打开“隐私”设置以访问它。第4步–在该隐私页面上,打开“上次查看和在线”设置以访问该设置。步骤5–将“谁可

Java线程的五种状态详解及状态转换规则Java线程的五种状态详解及状态转换规则Feb 19, 2024 pm 05:03 PM

深入了解Java线程的五种状态及其转换规则一、线程的五种状态介绍在Java中,线程的生命周期可以分为五个不同的状态,包括新建状态(NEW)、就绪状态(RUNNABLE)、运行状态(RUNNING)、阻塞状态(BLOCKED)和终止状态(TERMINATED)。新建状态(NEW):当线程对象创建后,它就处于新建状态。此时,线程对象已经分配了足够的资源来执行任务

精品阐述:Dubbo是否已经支持Go语言精品阐述:Dubbo是否已经支持Go语言Mar 25, 2024 am 09:42 AM

尊敬的读者朋友们,今天我们将为您精心奉上一篇关于Dubbo在Go语言方面的探讨文章。Dubbo作为一款优秀的分布式服务框架,在Java语言中得到了广泛的应用和支持。而随着Go语言在近年来的快速发展,许多开发者对于Dubbo是否已经支持Go语言这一问题产生了浓厚的兴趣。本文将从Dubbo在Go语言方面的支持情况、具体实现方法以及代码示例等方面展开阐述,希望能为

了解打印机离线状态了解打印机离线状态Jan 04, 2024 am 10:29 AM

当我们在电脑上看到打印机处于脱机状态时,有时候我们可能不知道这意味着什么。实际上,这表示打印机没有连接打印机脱机状态是什么意思呀:答:脱机状态指的是打印机没有连接可能的原因是打印机没有开启或者没有正常连接打印机脱机状态解决方法重写内容而不改变原意时,需要将语言改写为中文,不需要出现原句1、首先确认你的打印机正常开启,如果没有的话就打开它。使用另一种方法:1、如果您的打印机已经打开,您可以先进入“控制面板”然后,点击“查看设备和打印机”选项3、接下来选择您的打印机,点击“查看当前正在打印的内容”最

PHP无状态的介绍与原理解析PHP无状态的介绍与原理解析Mar 06, 2024 pm 02:57 PM

PHP无状态的介绍与原理解析在Web开发中,无状态性是一个重要概念,它指的是服务器在处理客户端请求时不会保存任何客户端的状态信息,每个请求都是独立的,并不依赖于之前的请求。PHP作为一种常用的服务器端脚本语言,也支持无状态的特性。本文将介绍PHP无状态的概念及其原理,并通过具体的代码示例进行解析。无状态的概念无状态的概念是指服务器不会在处理客户端请求时保存任

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function