Object doesn't support this property or method
I need a little help guys.
- function FindSelectedType(){
var objChecked = null;
if (oneCheckBoxMode){
objChecked = '';
$(fields['PercentComplete']).find('input').each(function(){
var checkbox = $(this);
if (checkbox.attr('checked'))
objChecked = checkbox.next().value();
});
}
else{
var objChecked = {};
$(fields['PercentComplete']).find('input').each(function(){
objChecked[$(this).next().value()] = $(this).attr('checked');
});
}
return objChecked;
}
It is breaking at objChecked = checkbox.next().value();
with "Object doesn't support this property of method". Any ideas?