diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/jquery.multi-select.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index 177060a..e17b5a1 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -69,10 +69,9 @@ var attributes = ""; for (var cpt = 0; cpt < this.attributes.length; cpt++){ - var attr = this.attributes[cpt], - name = (attr.name == 'value') ? 'ms-value' : attr.name; + var attr = this.attributes[cpt]; - attributes += name+'="'+attr.value+'" '; + attributes += attr.name+'="'+attr.value+'" '; } var selectableLi = $('<li '+attributes+'><span>'+$(this).text()+'</span></li>'), selectedLi = selectableLi.clone(); |