-1
我有这样的代码,计数选择了等于5.如何只让它在如何使JavaScript的计算只能在特定的DIV标签
<div id="groupa">
这里算上选择的选择框是我的代码已经
function getSelectedValues(){
var matches = $('select').filter(function(){
return $(this).val() == '5';
}).length;
// here's where we just update that new <span>
$('span#result5').text(matches);
}
如何与Java有关的问题? – tzima 2015-02-24 18:30:30
'$('#groupa select')。filter(...' – adeneo 2015-02-24 18:31:13