backbone-formview.js
function () {
            var possibleVals = result(this, 'possibleVals');
            var id = this.inputId;
            var $select = Backbone.$('<' + this.elementType + '>')
                    .attr(extend((this.addId ? { id: id, name: id } : {}), this.inputAttrs));

            this.getInputWrapper().html($select);
            if (this.multiple) { $select.attr('multiple', 'multiple'); }
            if (this.inputClass) { $select.addClass(this.inputClass); }
            if (this.placeholder) {
                $select.append('<option value="">' + this.placeholder + '</option>');
            }
            return this._renderInput($select, possibleVals);
        }
function () {
            var possibleVals = result(this, 'possibleVals');
            var id = this.inputId;
            var $select = Backbone.$('<' + this.elementType + '>')
                    .attr(extend((this.addId ? { id: id, name: id } : {}), this.inputAttrs));

            this.getInputWrapper().html($select);
            if (this.multiple) { $select.attr('multiple', 'multiple'); }
            if (this.inputClass) { $select.addClass(this.inputClass); }
            if (this.placeholder) {
                $select.append('<option value="">' + this.placeholder + '</option>');
            }
            return this._renderInput($select, possibleVals);
        }
function ( ) { var possibleVals = result ( this , 'possibleVals' ) ; var id = this . inputId ; var $select = Backbone . $ ( '<' + this . elementType + '>' ) . attr ( extend ( ( this . addId ? { id : id , name : id } : { } ) , this . inputAttrs ) ) ; this . getInputWrapper ( ) . html ( $select ) ; if ( this . multiple ) { $select . attr ( 'multiple' , 'multiple' ) ; } if ( this . inputClass ) { $select . addClass ( this . inputClass ) ; } if ( this . placeholder ) { $select . append ( '<option value="">' + this . placeholder + '</option>' ) ; } return this . _renderInput ( $select , possibleVals ) ; }
Renders the select element and the options
@memberOf Backbone.fields.SelectListView#
@return {Backbone.fields.SelectListView}
Renders the select element and the options