zoukankan      html  css  js  c++  java
  • jquery读取checkbox的值

    ////////////////////////////////////////////HTML代码,checkbox///////////////////////////////////////////////////////////////////
                             <td style=" 150px"> <label> <input id="checkDesign" type="checkbox" name="operType" value="Design" />Design </label> </td> <td style=" 150px"> <label> <input id="checkFoundry" type="checkbox" name="operType" value="Foundry" /> Foundry </label> </td> <td style=" 150px"> <label> <input id="checkOthers" type="checkbox" name="operType" value="Others" /> Others </label> </td>
    
    
    ////////////////////////jquery读取上面checkbox的所有被勾选的值////////////////////////
    
    
    var notes = new Array();
    $('input:checkbox:checked').each(function (i) {
      notes.push($(this).val());
    });
  • 相关阅读:
    msp430入门学习21--TA
    msp430入门学习20
    msp430入门学习17
    msp430入门学习16
    msp430入门学习15--时钟
    msp430入门学习14
    msp430入门学习13
    msp430入门学习12
    msp430入门学习11
    msp430入门学习10
  • 原文地址:https://www.cnblogs.com/huhuiliang/p/4359349.html
Copyright © 2011-2022 走看看