diff options
-rw-r--r-- | jquery.multiple.select.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index 27a2d5a..e208ec4 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -13,9 +13,10 @@ var that = this, name = $el.attr('name') || options.name || '' + var originalParentStyle = $el.parent().attr('style') || ''; $el.parent().hide(); var elWidth = $el.css("width"); - $el.parent().show(); + $el.parent().show().attr('style', originalParentStyle); if (elWidth=="0px") {elWidth = $el.outerWidth()+20} this.$el = $el.hide(); |