我是靠谱客的博主 暴躁金针菇,这篇文章主要介绍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;
}

 

转载于:https://www.cnblogs.com/yisheng/p/3362907.html

最后

以上就是暴躁金针菇最近收集整理的关于js遍历checkbox获取数据的全部内容,更多相关js遍历checkbox获取数据内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(118)

评论列表共有 0 条评论

立即
投稿
返回
顶部