Jquey operation checkbox, select all, click, get value, click text check box
Click Add Data, select another empty data, other selected items
iPollo Miner is a supercomputer equipment designer, headquartered in Singapore. The company has evolved as a competitive player on the global market with robust designs since its inception. iPollo`s product line includes not only Ethereum V series, Bitcoin B series, and world-first Grin Asic Miner G series, but also Filecoin, Chia, Swarm, and other Proof of Capacity consensus crypto miners. Aided by iPollo`s rapid growing footprints, the company is eager to serve our institutional and retail clients worldwide with a mission statement of [improving computing power and stability; reducing power consumption and user cost; maintaining blockchain network security."iPollo`s value lies deeply in the supreme quality and prestige reputation amongst our clients and ecosystem. With a strong commitment to continuous exploration and development, iPollo strives to succeed with our clients across the world.
Ipollo Mining Machine:iPollo G1,iPollo V1,iPollo V1 Classic,iPollo V1 Mini SE Plus,iPollo V1 Mini,iPollo V1 Mini Classic Plus,iPollo B1L
ipollo miner,ipollo v1,ipollo g1,ipollo mining machine,asic ipollo miner Shenzhen YLHM Technology Co., Ltd. , https://www.hkcryptominer.com
1. Click on the event and click on any of the check boxes to execute jquery (string stitching)
$(".clv").change(funcTIon() {
Var str="";
$('input[name="checkbox"]:checked').each(funcTIon(){
Str+=$(this).val()+",";
});
$("#updateinput").val(str);
});
1. Click on the event and click on any of the check boxes to execute jquery (array reception)
$(".clv").change(funcTIon() {
Var chk_value =[];
$('input[name="test"]:checked').each(funcTIon(){
Chk_value.push($(this).val());
});
Alert(chk_value.length==0 ? 'You have not selected anything yet!':chk_value);
});
1. Click the checkbox to determine if Method 1 is selected :
If ($("#check7")get(0).checked) {
Alert();
}
Method 2: (more easy to understand)
If($('#check7').is(':checked')) {
Alert();
}
Method three:
If ($('#check7').attr('checked')) {
Alert();
}
Implement the click text, check box to select the data in the check box corresponding to the check box after the check box.
select all
Select all: $(":checkbox").attr("checked","checked");
Deselect all: $(":checkbox").removeAttr("checked");
Get the selected: $(":checked[checked='checked']")
If not, try:
Select all: $(":checkbox").prop("checked",true)
Deselect all: $(":checkbox").prop("checked",false)
Get selected: $(":checkbox:checked")
Realize the effect
$(".clv").change(function() {
If($('#check7').is(':checked')) {
$(":checkbox").removeAttr("checked");
$(this).attr("checked","checked");
$("#updateinput").val('');
}else{
Var str="";
$('input[name="checkbox"]:checked').each(function(){
Str+=$(this).val()+",";
});
$("#updateinput").val(str);
}
});