js遍历checkbox获取数据


function GetCurrenetPoint() {
            debugger
            var currentTypes = "";
            var display = $("#input_tbType").css("display");
            if (display == "none") {
                currentTypes = "bak";
            }
            else {
                $("input[name='type']").each(function () { if ($(this).attr('checked')) { currentTypes += $(this).val() + "@"; } });
                if (currentTypes != "") {
                    currentTypes = currentTypes.substring(0, currentTypes.length - 1);
                }
                else {
                    currentTypes = "bak";
                }
            }
            return currentTypes;
        }

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM