diff --git a/dist/jquery-editable-select.js b/dist/jquery-editable-select.js index 5ac024a..55e12eb 100644 --- a/dist/jquery-editable-select.js +++ b/dist/jquery-editable-select.js @@ -119,6 +119,8 @@ EditableSelectUtility.prototype.initialize = function () { var that = this; that.setAttributes(that.es.$input, that.es.$select[0].attributes, that.es.$select.data()); + var placeholder = that.es.$select.data('placeholder'); + if (placeholder) that.es.$input.attr('placeholder', placeholder); that.es.$input.addClass('es-input').data('editable-select', that.es); that.es.$select.find('option').each(function (i, option) { var $option = $(option).remove(); diff --git a/dist/jquery-editable-select.min.js b/dist/jquery-editable-select.min.js index bba09fa..aee4505 100644 --- a/dist/jquery-editable-select.min.js +++ b/dist/jquery-editable-select.min.js @@ -1,2 +1,2 @@ /*! jQuery Editable Select - v2.2.5 - https://github.com/indrimuska/jquery-editable-select - (c) 2016 Indri Muska - MIT */ -+function(a){EditableSelect=function(b,c){this.options=c,this.$select=a(b),this.$input=a(''),this.$list=a('