diff --git a/js/bootstrap-combobox.js b/js/bootstrap-combobox.js index af5dc0d..37089a8 100755 --- a/js/bootstrap-combobox.js +++ b/js/bootstrap-combobox.js @@ -101,12 +101,12 @@ this.$target.prop('name', this.$source.prop('name')) this.$target.val(this.$source.val()) this.$source.removeAttr('name') // Remove from source otherwise form will pass parameter twice. - this.$element.attr('required', this.$source.attr('required')) - this.$element.attr('rel', this.$source.attr('rel')) - this.$element.attr('title', this.$source.attr('title')) - this.$element.attr('class', this.$source.attr('class')) - this.$element.attr('tabindex', this.$source.attr('tabindex')) - this.$source.removeAttr('tabindex') + var that = this, + attributes = this.$source.prop("attributes"); + $.each(attributes, function() { + if(this.name !== 'style') + that.$element.attr(this.name, this.value); + }); if (this.$source.attr('disabled')!==undefined) this.disable(); }