// choice field object Zymonic.Field.MultipleChoice = function() {}; // do the inheritance Zymonic.Field.MultipleChoice.prototype = new Zymonic.Field.MultipleValue(); Zymonic.Field.MultipleChoice.prototype.constructor = this; // override to get list of selected values Zymonic.Field.MultipleChoice.prototype.getValue = function() { var vals = new Array; $('input[name="' + this.ident + '"]:checked, select[name="' + this.ident + '"] option:selected').each(function() { vals.push($(this).val()); }); return vals; };