我正在使用 asp TreeView 控件。我想在客户端获得选定的“复选框”值。如何从 TreeView 中获取选定的值?
最佳答案
假设你的 treeview 有 id treeviewid
$('#treeviewid input[type=checkbox]:checked').each(function(){
alert($(this).val());
});
关于javascript - 如何使用 javascript 从 TreeView 中选择 "CheckBoxes"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13703058/