// choice field object Zymonic.Field.Choice = function() {}; // do the inheritance Zymonic.Field.Choice.prototype = new Zymonic.Field.Field(); Zymonic.Field.Choice.prototype.constructor = this; // TODO: add other functionality to this // override getValue as ChoiceFields always have an input of value, hidden if display only Zymonic.Field.Choice.prototype.getValue = function() { return this.jquery().val(); }; //override getValue to get list element, or the radio buttons Zymonic.Field.Choice.prototype.input_elements = function() { return this.container_div().find(":input[type='radio'], :input[type='checkbox'], select"); };